

- #Onedrive download folder without sync full#
- #Onedrive download folder without sync for windows 10#
- #Onedrive download folder without sync Offline#
- #Onedrive download folder without sync windows#
Intune PowerShell script settings - user context. Intune allows you to implement PowerShell scripts that run in the user context or Local System contexts. My script could do with some additional error checking and robustness however, it provides the functionality required to redirect specific folders into the OneDrive folder and can be re-run as necessary to enforce redirection for each folder. Implements redirection for the Desktop, Documents and Pictures folders.Reads the OneDrive for Business sync folder from the registry to avoid hard-coding the target path.Redirect-Folder - this function wraps some testing around the redirect + move functionality.
#Onedrive download folder without sync full#
This function ensures that we also get a full log of all files moved to the new path. Rather than implement the same functionality of Robocopy in PowerShell, the script references it directly to move the contents of the folder to the new location.


The article includes the following overview of folder redirection:įolder Redirection processing contains five steps:
#Onedrive download folder without sync windows#
The document targets Windows XP and Windows Server 2003, but the concepts are still the same in 2017. Here’s an old, but an excellent article that covers how the Folder Redirection Extension works. Testing, feedback and improvements can be logged on the repository. Going forward any additional development will occur there. A GitHub repository has been established for the scripts in this article. With PowerShell scripts available to deploy via Intune, we can create a custom approach for redirecting essential folders into OneDrive.
#Onedrive download folder without sync for windows 10#
Implementing folder redirection for Windows 10 via Intune currently isn’t possible, so we need a creative solution to this challenge. Some organisations will even have implemented folder redirection into the OneDrive folder via Group Policy, as a better alternative.
#Onedrive download folder without sync Offline#
Traditionally managed PCs will have folder redirection (and offline files) so that user’s documents are synchronised when connected to the corporate network. If you’re deploying Windows 10 with Modern Management (Azure AD joined, MDM managed), you’ll likely have wondered about data protection - if users aren’t intentionally saving documents to their OneDrive folder, that data is likely, not synchronised and therefore not protected against data loss.
