OneDrive silent account configuration automatically signs users into the OneDrive sync client with their Entra ID (Azure AD) credentials when they log into a managed Windows device. Combined with Known Folder Move (KFM), this ensures Desktop, Documents, and Pictures are backed up to OneDrive without user intervention. This tutorial configures both features using Intune ADMX administrative templates.
Before you start
What you will learn
- How to configure OneDrive silent sign-in and Known Folder Move using Intune ADMX templates.
- Without auto sign-in, users must manually configure OneDrive. Without KFM, user files on Desktop and Documents are not backed up to the cloud, creating data loss risk.
Requirements
- Microsoft Intune admin center (intune.microsoft.com)
- Microsoft 365 tenant with Intune and OneDrive for Business licenses, Entra ID joined Windows 10/11 devices
- Intune Administrator
Good to know
- 15-20 minutes
Quick answer
Create an Intune ADMX profile enabling silent sign-in and Known Folder Move with your tenant ID. Assign to devices.
Intune > Devices > Configuration > Administrative Templates > OneDriveStep-by-step tutorial
3 stepsEnable OneDrive silent sign-in via ADMX
Configure OneDrive silent account configuration via Intune ADMX.
Intune > Devices > Configuration > Create > Administrative TemplatesIn Intune, go to Devices > Configuration > Create > New Policy. Select Windows 10 and later, profile type Administrative Templates.
Name it "OneDrive Auto Sign-in and KFM". In the template settings, navigate to User Configuration > OneDrive.
Enable Silently sign in users to the OneDrive sync app with their Windows credentials. This uses the user's Windows sign-in token to authenticate to OneDrive without prompting.
Also configure Set the default folder for the OneDrive folder if you want to control where the OneDrive root folder is created locally.
Silent sign-in requires Entra ID joined or hybrid joined devices. It uses the Windows primary refresh token (PRT) for authentication. Does not work on workgroup devices.
Configure Known Folder Move (KFM)
Configure Known Folder Move to redirect user folders to OneDrive.
Same profile > OneDrive > Silently move Windows known folders to OneDriveIn the same ADMX profile, find Silently move Windows known folders to OneDrive. Enable it and enter your Entra tenant ID (found in Entra admin center > Overview).
Optionally enable Prevent users from redirecting their Windows known folders to their PC to block users from undoing the redirect.
Optionally enable Prevent users from moving their Windows known folders to OneDrive if you want to prevent manual KFM (use this only if you want Intune-only control).
Assign the profile to your target device group. At the next user sign-in, OneDrive will silently redirect Desktop, Documents, and Pictures to the user's OneDrive for Business.
KFM moves files in the background. Large folders may take time to upload. Monitor OneDrive sync status via the Intune OneDrive health dashboard or OneDrive admin center.
Verify and troubleshoot deployment
Verify deployment and troubleshoot sync issues.
Verify on a device: Check that the OneDrive icon appears in the system tray and shows the user's name. Open File Explorer and confirm Desktop, Documents, and Pictures show the OneDrive cloud icon.
Check Intune: Go to Devices > Configuration > select the profile > Device status. All targeted devices should show "Succeeded".
Troubleshoot sync errors: If OneDrive shows sync conflicts or errors:
# Check OneDrive process
Get-Process OneDrive
# Check sync status via registry
Get-ItemProperty 'HKCU:\Software\Microsoft\OneDrive\Accounts\Business1' | Select-Object UserEmail, UserFolderCommon issues: insufficient OneDrive storage quota, files with unsupported characters, files locked by other applications.
OneDrive sync logs are at %localappdata%\Microsoft\OneDrive\logs. The Intune OneDrive health report shows sync status across your fleet.
Confirm the result
Troubleshooting
OneDrive does not sign in automatically
Cause: The device is not Entra ID joined or hybrid joined, or the user's PRT is expired.
Verify Entra join status with dsregcmd /status. Ensure AzureAdJoined is YES. If hybrid joined, check Entra Connect sync status.
Known Folder Move fails with sync errors
Cause: The user's OneDrive storage is full, or files contain unsupported characters (# % &).
Check OneDrive storage quota in the admin center. Rename files with unsupported characters. Review sync logs at %localappdata%\Microsoft\OneDrive\logs.
Frequently asked questions
How does OneDrive silent sign-in work?
It uses the Windows primary refresh token (PRT) to authenticate the user to OneDrive automatically at Windows logon. No password prompt needed.
What is Known Folder Move?
KFM redirects Desktop, Documents, and Pictures folders to OneDrive for Business. Files sync automatically to the cloud for backup and cross-device access.
Does this work on non-domain devices?
Entra ID joined or hybrid joined devices. Does not work on workgroup or personal devices.
Can users undo the folder redirect?
Yes. Enable 'Prevent users from redirecting their Windows known folders to their PC' in the same ADMX profile.






