If silent account configuration is enabled, OneDrive.exe will attempt to sign in to the work or school account on the device that's joined to Azure AD (If you have an on-premises environment, you need to enable hybrid Azure AD joined devices. In case your on-premises environment is federated with Azure AD, you must use AD FS to enable this feature). Before syncing, the available disk space will be checked. In case, syncing the user's entire OneDrive will cause the available space to drop below 1GB or if the size exceeds the threshold you've set, OneDrive will prompt the user to choose folders to sync.
Steps involved:
If the computers where you are going to install the sync app is part of Active Directory on-premises, then you can use domain group policy to configure silent account configuration.
Using Group Policy:
- Click here to learn more about enabling silent account configuration using group policy.
- Optionally, you can specify the maximum limit for file downloads from OneDrive using the silent configuration.
- Optionally, set the default location for the OneDrive folder.
In case, if the local machine where you would like to install the sync app is not part of AD on-premises but connected only to Azure AD, then use the following script to enable the silent account configuration.
Script:
$HKLMregistryPath = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
$DiskSizeregistryPath = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive\DiskSpaceCheckThresholdMB'
$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
New-ItemProperty -Path $DiskSizeregistryPath -Name $TenantGUID -Value '102400' -PropertyType DWORD -Force | Out-Null
Secure your OneDrive for Business environment with M365 Manager Plus:
M365 Manager Plus is an extensive Microsoft 365 reporting, managing, monitoring, and auditing tool. With this solution, Microsoft 365 admins can efficiently manage and get valuable insights into OneDrive consumption, audit file/folder activities, get alerted for critical activities, and perform several other administrative tasks. With M365 Manager Plus:
- Create custom alerts for admin/user activities and receive real-time email alerts with meticulous details on the action that triggered the alert.
- Get insightful reports on OneDrive activities such as files accessed, file modifications, uploads, downloads, sharing activities, user activities and many more.
- Track file and folder activities in OneDrive for Business, in real time. You can also create your own auditing profile to scrutinize specific operations.
- Monitor the health status (current status of the service and details about service disruptions and outages) and performance of OneDrive for Business and SharePoint Online.
So, what are you waiting for? Hurry up and download the trial version here.