On-premises environments that have been utilizing Folder Redirection with Group Policy Objects (GPOs) and now shifting to a cloud-native approach, will need to ditch redirecting user's files and folders to a network share and start using a more modern approach such as OneDrive Known Folder Move (KFM).
Overview
This article will guide you through the process of migrating from Folder Redirection to OneDrive KFM using Microsoft Intune. Along the way, we'll cover topics such as checking for folder path errors with PowerShell, using the Microsoft Graph API to get OneDrive URLs for users, and utilizing the free Microsoft SharePoint Migration Manager to migrate files from the network share to a user's OneDrive.
Prerequisites
- Microsoft Intune subscription
- An on-premises account with NFTS permissions to the root network share used for Folder Redirection
Verify Folder Redirection GPO settings
Before we start the migration process, we need to confirm the current Folder Redirection GPO settings. This way, we know what the expected behavior should be once the policy is disabled for a specific user. We don't want any surprises - especially when it comes to a user's files. 😅 Navigate to the Group Policy Management Console to review this information.
Once the folder redirection GPO is located, navigate to the User Configuration > Policies > Windows Settings > Folder Redirection to view the settings. Right-click on the folder you want to check and select Properties. This will open the properties window where you can view the current settings.
For this example, the settings below are configured for the Documents and Desktop folders configured for Folder Redirection. Additionally, the NTFS and network share permissions recommended by Microsoft are configured on the root folder of the network share.
The Policy Removal setting is set to Leave the folder in the new location when policy is removed. This means that when the GPO is disabled, the user's files will remain in the redirected location such as the network share.

So an Administrator can still have access to user created files and folders, it is recommended to configure the Folder Redirection GPO to Not Grant user exclusive rights to folder. However, without configuring proper NTFS permissions on the root folder of the network share configured for Folder Redirection, this can pose a security risk and allow a user to access another user's files.

In conjunction with the Grant user exclusive rights to folder setting unselected, Microsoft recommends that the following NTFS permissions and share permissions be set on the root folder of the network share to prevent users from accessing each other's files:
The KB article recommending these settings can be found here.
NTFS Permissions
- CREATOR OWNER - Full Control (Apply onto: Subfolders and Files Only)
- System - Full Control (Apply onto: This Folder, Subfolders and Files)
- Domain Admins - Full Control (Apply onto: This Folder, Subfolders and Files)
- Everyone - Create Folder/Append Data (Apply onto: This Folder Only)
- Everyone - List Folder/Read Data (Apply onto: This Folder Only)
- Everyone - Read Attributes (Apply onto: This Folder Only)
- Everyone - Traverse Folder/Execute File (Apply onto: This Folder Only)
Share Permissions
- Everyone group - Full Control
This would allow for a domain user in the Domain Admins group to have access to the user folders created by the Folder Redirection GPO and all the child files and folders created by the user. However, if this is not the case, the NTFS permissions may need to be adjusted accordingly. In most cases, a Domain Admin will have to take ownership of the folder to grant themselves the appropriate NTFS permissions.
Utilize the free Microsoft SharePoint Migration Manager to migrate user files to OneDrive
The SharePoint Migration Manager is a free tool provided by Microsoft that allows you to migrate files from a network share to a user's OneDrive. This tool is designed to work with both SharePoint and OneDrive, making it a versatile option for file migration.
- Navigate to the Microsoft 365 admin center and click ... Show all > SharePoint.
- In the left navigation pane, click Migration.