Hello,
I'm trying to figure out if there is a way we can push out a script that will enable the OneDrive startup key. Just a small background on this, prior to my time at my company, OneDrive was disabled on all computers, including the use of the DisableFileSyncNGSC key. Removing these keys doesn't allow OneDrive to start up automatically. So far, the only way I've found out how to get it to start up, is to go into the settings of OneDrive and click the "Start OneDrive automatically when I sign in to Windows". This creates the following OneDrive registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
C:\Users\<username>\AppData\Local\Microsoft\OneDrive\OneDrive.exe" /background
However, we have 1,300+ machines and it would be nice if there was a way to somehow push this out to everyone so they didn't need to go in and enable it themselves (since most won't even read the instructions to do it).
The problem is, creating a registry key for each unique user per machine doesn't quite work so well. I tried creating one like this:
%userprofile%\AppData\Local\Microsoft\OneDrive\OneDrive.exe /background, but using the %userprofile% environment variable doesn't work. Is there anything I can do to force every machine to start OneDrive automatically? We want to use Known Folder Move for all of our users, but OneDrive has to start each time to ensure that syncing happens.