OneDrive for Business Auto Sign In and Backup user profile using GPO.

Before we begin, download and update your group policy Administrative Templates (.admx).

https://www.microsoft.com/en-us/download/details.aspx?id=56880

Create new GPO

Find your Tenant ID:

https://docs.microsoft.com/en-us/onedrive/find-your-office-365-tenant-id

Don’t forget to limit the Bandwidh to 10% that it will not consum all your bandwith when you deploy it to your users.


The next time the user will restart and login to his computer, The OneDrive for Bussines will automatically set up and backup is Desktop, Pictures, Documents.

Fix problems with folder protection

Here are a list of errors you might see when you set up folder protection and how to resolve them:

  • The following file types can’t be protected: Outlook database files (.pst) and OneNote files that aren’t already stored in OneDrive (.one, .onepkg, .onetoc, .onetoc2). To continue protecting the folder, move your OneNote notebooks to OneDrive or remove these items from the folder you want to protect, and then try again.
  • Folder protection is unavailable: A common reason for this error is that important folders on PCs that are connected to a domain can’t be protected in a personal OneDrive account (when you’re signed in with a Microsoft account). Please contact your IT administrator about data protection solutions. You shouldn’t have this issue with a work or school account.
  • File exceeds the maximum path length: Make sure the entire file path, including the file name, contains fewer than 520 characters on Windows 10 or under 260 characters on Windows 7. An example of a file path is:
    C:\Users\<UserName>\Pictures\Saved\2017\December\Holiday\NewYears\Family…
    To resolve this, shorten the name of your file or the name of subfolders in OneDrive, or select a sub-folder that’s closer to the top-level folder.
  • File exceeds the maximum file size: OneDrive can’t sync files over 15GB if you’re signed in to a Microsoft account, or over 15GB if you’re signed in to a work or school account. Remove these files from the folder you want to protect and then try again.
  • The file name isn’t allowed in OneDrive: File names can’t start with a space or include any of these characters: \ : / * ? < > ” |. Please move or rename the file to continue.
  • The folder isn’t selected for syncing: The folder with the error is not syncing to your PC. To resolve this error, open OneDrive Settings (right-click the white or blue cloud icon in your notification area, and click Settings), click Choose Folders, and then make sure the folder you want to protect is selected. If Pictures is showing this error, make sure that Pictures, Screenshots, and Camera Roll are all selected (or don’t exist). It’s also possible that the OneDrive folder has a different name from the Windows important folder.
  • The folder is on a different volume than OneDrive: OneDrive is set up to sync on a different volume than the folder selected for protection. A couple of common ways this can happen are 1) if you set up your PC such that OneDrive is on the D: drive, but the Documents folder is on the C: drive, or 2) if you have your folders pointed to a network share (this would most likely happen at school or work). To resolve this issue, set up OneDrive on the same volume as the folder you’re trying to protect. In OneDrive settings, click Unlink this PC. After unlinking, sign in again and choose the root folder location to be on the same volume as the folder you want to sync. You can also manually move the folder you want to sync to the same volume as OneDrive by right-clicking the folder, selecting the location tab, and choosing a location that’s on the same volume as OneDrive.
  • Important folders aren’t in the default locations: The folder with the error contains another important folder and can’t be protected until the contained folder is moved. Important folders that may be contained within the folder include: Documents, Desktop, Pictures, Screenshots, Camera Roll, or the OneDrive folder.
  • An unknown error occurred, with error code 0x80070005: If you receive error code 0x80070005, the “Prohibit User from manually redirecting Profile Folders” group policy is enabled. You may find that the files from the folders you selected were moved to identically named folders in your OneDrive folder, and the original locations are empty. Move the folder contents back to the original locations and ask your administrator whether the policy can be changed.
  • Folder contains a reparse point (junction point or symlink): The folder you want to protect contains a special file type that links parts of the file system together. These items can’t be protected. To protect the folder, remove the file causing the issue.

One thought on “OneDrive for Business Auto Sign In and Backup user profile using GPO.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.