Silently configure user accounts - OneDrive (2024)

  • Article
  • 7 minutes to read

This article is for IT admins who would like to silently configure user accounts when deploying the new OneDrive sync app (OneDrive.exe) to managed Windows computers in their enterprise. This feature works for computers that are joined to Azure Active Directory (Azure AD).

If you enable this feature, OneDrive.exe will attempt to silently (without user interaction) sign-in to the work or school user account that was used to sign into Windows (known as the Windows Primary Account). That Windows account must be a Microsoft Azure Active Directory (Azure AD) account or be linked to an Azure AD account through a hybrid authentication configuration (see Prerequisites below).

Before OneDrive.exe begins syncing, it will check the available disk space. If syncing the user's entire OneDrive would cause the available space to drop below 1 GB or if the size exceeds the threshold you set (on devices that don't have Files On-Demand enabled), OneDrive will prompt the user to choose folders to sync. For info about setting this threshold using Group Policy, see Set the maximum size of a user's OneDrive that can download automatically.

When the user is configured in the sync app, if the same user account is syncing files with the previous OneDrive for Business sync app (Groove.exe), the new sync app (OneDrive.exe) will attempt to take over syncing those files.

Important

We recommend enabling silent account configuration when you configure the sync app. See all our recommendations for configuring the sync app

Prerequisites

Before you can enable silent account configuration, you need to join your devices to Azure AD. You can join devices running Windows 10 and Windows Server 2016 directly to Azure AD. To learn how, see Join your work device to your organization's network.

If you have an on-premises environment that uses Active Directory, you can enable hybrid Azure AD joined devices to join devices on your domain to Azure AD. Devices must be running one of the following operating systems:

  • Windows 10
  • Windows 8.1
  • Windows 7
  • Windows Server 2019
  • Windows Server 2016
  • Windows Server 2012 R2
  • Windows Server 2012
  • Windows Server 2008 R2

If you federate your on-premises Active Directory with Azure AD, you must use AD FS to enable this feature. For info about using Azure AD Connect, see Getting started with Azure AD Connect using express settings.

Enable silent configuration

If the computers on your network are joined to Active Directory on-premises, you can use domain group policy to configure silent account configuration.

Using Group Policy:

  1. Enable silent account configuration. For info, see Silently sign in users to the OneDrive sync app with their Windows credentials.

  2. Optionally, specify the maximum OneDrive size that will download automatically in silent configuration. For info, see Set the maximum size of a user's OneDrive that can download automatically. If you enable Files On-Demand, OneDrive will ignore the maximum size value.

  3. Optionally, set the default location for the OneDrive folder. For info, see Set the default location for the OneDrive folder.

Tip

See the Verify SilentAccountConfig section below to verify and troubleshoot your configuration.

Note

Silent account configuration won't work on devices for users who require multi-factor authentication. Select third-party identity providers (IdPs) are supported, but there are caveats. For more information, make sure to check out the Azure AD federation compatibility list.

If the computers on your network aren't connected to Active Directory on-premises, but only to Azure AD, we recommend using Intune and a Microsoft PowerShell script to set the registry keys required to enable silent account configuration. Be sure you have automatic enrollment set up for Windows 10 devices.

Using a script:

$HKLMregistryPath = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'##Path to HKLM keys$DiskSizeregistryPath = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive\DiskSpaceCheckThresholdMB'##Path to max disk size key$TenantGUID = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'if(!(Test-Path $HKLMregistryPath)){New-Item -Path $HKLMregistryPath -Force}if(!(Test-Path $DiskSizeregistryPath)){New-Item -Path $DiskSizeregistryPath -Force}New-ItemProperty -Path $HKLMregistryPath -Name 'SilentAccountConfig' -Value '1' -PropertyType DWORD -Force | Out-Null ##Enable silent account configurationNew-ItemProperty -Path $DiskSizeregistryPath -Name $TenantGUID -Value '102400' -PropertyType DWORD -Force | Out-Null ##Set max OneDrive threshold before prompting

Windows Image Prep requirements

SilentAccountConfig creates a SilentBusinessConfigCompleted registry entry once SilentAccountConfig has successfully provisioned the user in OneDrive.exe. This prevents SilentAccountConfig from reprovisioning the user in OneDrive.exe if the user manually stops syncing.

If SilentAccountConfig has successfully completed on a computer you're going to use to build a Windows deployment image (for example, SysPrep), you need to ensure this registry key is removed before you prepare your image. You can do so by running the following command:

reg delete HKCU\Software\Microsoft\OneDrive /v SilentBusinessConfigCompleted /f

Verify SilentAccountConfig

  1. Unlink all pre-existing Business instances in OneDrive.

  2. Clear the registry of any previous successful Silent Business Config runs:

    reg delete HKCU\Software\Microsoft\OneDrive /v SilentBusinessConfigCompleted /f
  3. Set the Silent Config policy registry entry (must be run from an administrator CMD window):

    reg add HKLM\SOFTWARE\Policies\Microsoft\OneDrive /v SilentAccountConfig /t REG_DWORD /d 0x1 /f
  4. Sign out of Windows (Ctrl+Alt+Delete Sign out).

  5. Sign in to Windows.

  6. Shortly you should see a blue cloud icon in the notification area of the taskbar. Selecting the icon should show the activity center pop-up showing ongoing/recent activity from the first sync. If so, SilentAccountConfig has worked correctly.

  7. If instead you see the "Set up OneDrive" screen, SilentAccountConfig couldn't silently sign in or failed for another reason. Verify you completed these steps correctly by repeating them again. Follow the Verify Single Sign On (SSO) steps later in this article to confirm that SSO isn't a problem. Gather sync app logs to send to the engineering team for further help.

  1. Ensure you can manually get the OneDrive sync app to sync content with your on-premises SharePoint Server 2019 before proceeding. See Configure sync app for syncing with SharePoint Server for details.

  2. Set the SharePointOnPremPrioritization reg key value to 1 (this ensures that SharePoint Server takes precedence over SharePoint in Microsoft 365, deleting the registry key to revert to SharePoint in Microsoft 365):

    reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive /v SharePointOnPremPrioritization /t REG_DWORD /d 0x1 /f
  3. Follow steps 1 through 6 in the previous procedure for SharePoint in Microsoft 365.

  4. If instead, you see the "Set up OneDrive" screen, SilentAccountConfig was unable to silently sign in or failed for another reason. Verify you've completed these steps correctly by repeating them again. Gather sync app logs to send to the engineering team for further help.

To prevent Silent Business Config:

reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive /v SilentAccountConfig /f

Verify that Single Sign On (SSO) is working

The most common reason for SilentAccountConfig to fail is the credentials aren't available to OneDrive.exe without user interaction. Follow these steps to determine if this is a problem in your case.

If you have a computer, you think should work with SilentAccountConfig, you can manually verify that SSO is working correctly to ensure that the environment is configured correctly.

  1. Temporarily force ADAL on by running this command:

    reg add HKCU\Software\Microsoft\OneDrive /v EnableADAL /t REG_DWORD /d 1 /f
  2. Shut down any running OneDrive.exe processes (verify in the Task Manager Details tab - Ctrl+Shift+Esc).

  3. Start menu - OneDrive, you should see the Set up OneDrive screen (if not unlink/stop syncing any business accounts and start over).

  4. Enter the same email address that the user used to sign into Windows (try alias@domain and domain\alias forms).

  5. Select the Sign in button.

  6. The dialog should switch to a "signing in" page with a spinning icon for a few seconds. It should then continue to the next part of the wizard without asking for a password.

  7. If a password prompt doesn't appear, your auth environment is properly configured and SilentAccountConfig should work for your users.

  8. If you do see a password prompt, the environment isn't configured properly for silent sign-on. This could be due to a problem with how the computer is domain joined (for example, a trust relationship problem), a problem with ADFS configuration, an Azure AD conditional access policy requiring user interaction, you didn't provide the same user email address as the one used to sign into Windows, or some other reason. You'll need to resolve whatever is blocking silent sign-on before SilentAccountConfig will work for you.

  9. Remove the EnableADAL key you added in step 1:

    reg delete HKCU\Software\Microsoft\OneDrive /v EnableADAL /f

Note

When using SilentAccountConfig, you do not need to specify EnableADAL=1. This is only necessary when manually testing SSO in the above steps where we manually sign in (instead of using SilentAccountConfig to sign in). However, if you want users who manually set up OneDrive sync to benefit from SSO to minimize how often they need to enter a password in sync, you can deploy the EnableADAL key on your users' computers.

Silently configure user accounts - OneDrive (2024)

FAQs

How do I enable OneDrive for all users? ›

Enable OneDrive for Business

Select Settings > Integration > Document management settings. Select Enable OneDrive for Business to enable it, and then select OK.

How do I restrict permissions on OneDrive? ›

To enable this feature:
  1. Go to Access control in the SharePoint admin center, and sign in with an account that has admin permissions for your organization.
  2. Select Limit OneDrive access.
  3. Select Limit OneDrive access to only users in specified security groups.
  4. Add the security groups you want to be able to use OneDrive.
Jun 8, 2022

Does OneDrive sync when user not logged in? ›

Unfortunately OneDrive only runs synchronization if the user, the OneDrive client was installed with, is logged in to Windows.

How do I quiet OneDrive for Business with Intune? ›

Give the policy a name like “OneDrive KFM”, then search for “silently”. In the results, select the “Silently move Windows known folders to OneDrive” setting from the OneDrive path and Enable it.

How do I stop OneDrive from syncing desktop? ›

To stop a OneDrive sync:
  1. Open the settings options of your OneDrive for Business client. Right click (Windows) or double finger tap (Mac) the OneDrive icon near the clock.
  2. Click Settings option.
  3. Navigate to the Account tab.
  4. Find the folder sync you want to disable, and click Stop sync.

How can I tell who has access to OneDrive? ›

Manage access to a file or folder
  1. The Links Giving Access section shows the links that have permissions to the file or folder. Click the ellipsis (...) to see the users that the link has been shared with.
  2. The Direct Access section shows people and groups who have direct access to the file or folder.

How do I stop people from sharing my files? ›

Stop sharing a file
  1. Find the file or folder in Google Drive, Google Docs, Google Sheets, or Google Slides.
  2. Open or select the file or folder.
  3. Click Share or Share .
  4. Find the person you want to stop sharing with.
  5. To the right of their name, click the Down arrow. Remove.
  6. To save changes, click Save.

How do I remove user access from OneDrive? ›

On the Details pane, under the Has Access header, you'll see the People icon, the Links icon, and/or the Email icon. These options vary depending on how you have shared the file or folder. Select Manage access. To remove a sharing link, click the X next to the link to remove it.

What is the OneDrive sync client? ›

The OneDrive Sync Client is one of the apps included in Microsoft Office 2013 and 2016. It is a piece of software that once configured, lets you connect to and sync files from your University of Windsor OneDrive for Business.

How often does OneDrive sync files? ›

Hi, By default, OneDrive for business automatically sync files approximately every 10 minutes. It cannot be changed by end users. However, we can do manual sync by clicking sync now option, this syncs all libraries you have synced to your computer at once.

How do I force OneDrive to sync files? ›

To force OneDrive to sync, there's only one thing left to do. Open OneDrive's window again, and click or tap on the Pause button from the top. Alternatively, you can also press the “Resume syncing” option from its menu. This action makes OneDrive sync the latest data right now.

What is the difference between OneDrive and OneDrive for Business? ›

To sum things up, OneDrive is best for personal storage, providing individuals with easy, secure, and quick access anytime, anywhere. OneDrive for Business, when used with SharePoint, syncs data across different devices, provides corporate access, co-author files, and allows users to work at home or on the road.

How do I enable OneDrive in group policy? ›

Tutorial GPO - Configure the OneDrive
  1. On the domain controller, download the latest version of the OneDrive.
  2. As an Administrator, start an elevated command-line.
  3. On the domain controller, open the group policy management tool.
  4. Create a new group policy.
  5. Enter a name for the new group policy.
May 29, 2021

How do I access OneDrive Admin Center? ›

1 Answer
  1. Go to the Microsoft 365 admin center as Global Admin.
  2. Users >> Active users >> find and select the user that you want to manage.
  3. On the User Details Panel, click on OneDrive >> Create link to files.
  4. 4.It will auto generat a OneDrive link, click on this link.
Aug 12, 2021

How do I give access to OneDrive? ›

Share with specific people
  1. Go to the OneDrive website and sign in with your Microsoft account or your work or school account.
  2. Pick the files or folders you want to share by selecting its circle icon. ...
  3. Select Share. ...
  4. Under Send Link, select Anyone with the link can edit to open the link settings.

How do I enable OneDrive in group policy? ›

Tutorial GPO - Configure the OneDrive
  1. On the domain controller, download the latest version of the OneDrive.
  2. As an Administrator, start an elevated command-line.
  3. On the domain controller, open the group policy management tool.
  4. Create a new group policy.
  5. Enter a name for the new group policy.
May 29, 2021

How do I manage OneDrive users? ›

Under People, select Manage User Profiles. Enter the user's name and select Find. Right-click the user, and then select Manage site collection owners. Add and remove admins for the OneDrive, and then select OK.

Where are my OneDrive settings? ›

To get to OneDrive Settings, open File Explorer, right-click the OneDrive icon in the navigation pane, and then click Settings.

Top Articles
Latest Posts
Article information

Author: Barbera Armstrong

Last Updated:

Views: 5469

Rating: 4.9 / 5 (59 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Barbera Armstrong

Birthday: 1992-09-12

Address: Suite 993 99852 Daugherty Causeway, Ritchiehaven, VT 49630

Phone: +5026838435397

Job: National Engineer

Hobby: Listening to music, Board games, Photography, Ice skating, LARPing, Kite flying, Rugby

Introduction: My name is Barbera Armstrong, I am a lovely, delightful, cooperative, funny, enchanting, vivacious, tender person who loves writing and wants to share my knowledge and understanding with you.