10/7/2023 0 Comments Download installing onedrive$officeTenantID = Get-MSOLCompanyInformation |Ĭonfigure OneDrive to prompt to move known folders to OneDrive by using the following PowerShell script: if ($officeTenantID -eq $null) Alternately, you can also get the organization ID by using the following PowerShell script: Install-Module MSOnline -Confirm Learn how to find your Microsoft 365 organization ID. If your virtual machine is connected to Active Directory, you can set the template machine to automatically prompt lab users to move the known folders to OneDrive. Move the folder to a new folder on the OneDrive directory. Right-select the Documents, Downloads, or Pictures folder. If you are on a machine that isn't using Active Directory, users can manually move those folders to OneDrive once they authenticate to OneDrive. To ensure these folders are backed up into OneDrive, you can move these folders to OneDrive. Silently move Windows known folders to OneDriveįolders like Documents, Downloads, and Pictures are often used to store lab user files. You can further customize your OneDrive configuration. & $env:USERPROFILE/Downloads/OneDriveSetup.exe /allUsers /silent Write-Host "OneDrive installer already exists at " $DownloadPath If((Test-Path $DownloadPath) -eq $False ) $DownloadPath = "$env:USERPROFILE/Downloads/OneDriveSetup.exe" Write-Host "Downloading OneDrive Client." The /silent switch performs a silent installation to avoid asking for user confirmations. In the example, the installation uses the /allUsers switch to install OneDrive for all users on the machine. The following script downloads and installs the latest version of OneDrive. Install OneDriveįollow these steps for OneDrive or OneDrive for Business. To protect user data from being lost, we recommend that lab users back up their data in the cloud, for example by using Microsoft OneDrive. When a lab user resets a lab virtual machine, all data on the machine is removed. In Windows 10 or 11, select Start, type PowerShell, right-select Windows PowerShell, and then select Run as administrator. Make sure to run the PowerShell scripts with administrative privileges (run as administrator). This article contains PowerShell snippets to streamline the machine template modification process.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |