ConfigureBeginnerTutorials

How to Configure OneDrive Auto Sign-in Using Microsoft Intune

Set up OneDrive automatic sign-in and Known Folder Move in Microsoft Intune using ADMX administrative templates. Silent account configuration with Entra ID credentials for managed Windows devices.

Emanuel De Almeida July 19, 2026 6 min read
Difficulty
Beginner
Time
15-20 minutes
Steps
3
Last tested
July 19, 2026

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 > OneDrive

Step-by-step tutorial

3 steps
1

Enable OneDrive silent sign-in via ADMX

Configure OneDrive silent account configuration via Intune ADMX.

Intune > Devices > Configuration > Create > Administrative Templates

In 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.

Expected resultOneDrive automatically signs in with the user's Entra ID credentials at Windows logon.

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.

2

Configure Known Folder Move (KFM)

Configure Known Folder Move to redirect user folders to OneDrive.

Same profile > OneDrive > Silently move Windows known folders to OneDrive

In 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.

Expected resultDesktop, Documents, and Pictures folders redirect to OneDrive and sync automatically.

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.

3

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:

ps
# Check OneDrive process
Get-Process OneDrive
# Check sync status via registry
Get-ItemProperty 'HKCU:\Software\Microsoft\OneDrive\Accounts\Business1' | Select-Object UserEmail, UserFolder

Common issues: insufficient OneDrive storage quota, files with unsupported characters, files locked by other applications.

Expected resultSync issues are resolved. OneDrive shows a green checkmark on all known folders.

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.

Reader reviews

Rate this articleBe the first to rate
No written reviews yetRate the article above, or be the first to share your experience.

Related articles