Hi everyone

Today I wanted to two useful GPO if you migrate your file server to SharePoint online.

The GPO are to create automatically the OneDrive Sync to the document library, the some useful setting to push and a settings for the delay for applying the configuration.

The first GPO to apply is to create the Mount point for the selected user. I suggest to use the same security group as the mapped drive was.

image.png?w=817

It's in HKEY_CURRENT_USER\Software\Policies\Microsoft\OneDrive\TenantAutoMount (REG_SZ)

Value Name = Text for the mount point to be created.

Value = Site URL

The site url can be obtained by navigating to the site, and click to Sync the site, it will offer an option to copy the link. The link must be un-escaped.

image-1.png?w=337

The link format is; tenantId=xxx&siteId=xxx&webId=xxx&listId=xxx&webUrl=httpsxxx&version=1

To un-escape use PowerShell, it's the easiest to do;

::UnescapeDataString("Copied String")

To that GPO can be added one more registry setting; its tagged as it will make the change appear more fast, but it's to test. On Reddit its a value that is tagged to be working for some, and not for other. On my side I seen a difference, maybe 10-20min and not near 8 hours, but it's maybe just the GPO time to apply.

HKCU\Software\Microsoft\OneDrive\Accounts\Business1

"TimerAutoMount"==dword:00000001

The last option I recommand is to make sure the File On Demand is activated, so that change in a computer GPO for that one;

HKLM\SOFTWARE\Policies\Microsoft\OneDrive

"FilesOnDemandEnabled"=dword:00000001

Next Post Previous Post