

Then you are ready to test the deployment. Note: It has to run after a reboot to the full OS, it cannot be run in WinPE. Add a step to the Task Sequence to run the command, I like to use the Run Command Line step but you could create a program as well if you like. Then we distribute the content if you haven’t automated it already like I do 😉 : Ħ. In Configuration Manager create a new package with the newly created folder as the source folder.ĥ. As the title implies, Star Wars: The Force Unleashed completely re-imagines the scope and scale of the Force to epic proportions. Rename the file to “RemoveOneDrive.cmd”ģ. Download the file and copy it to a folder that you can use as a package Source for a package in Configuration Manager.Ģ. cmd file can be downloaded here: removeOnedrive.cmdġ. cmd file with the following command lines to first mount the default user registry, remove the command and unmount it.

What we use is the old trick in the book, to mount the default user profile during OS Deployment and simply delete the Run command from the registry then it will not execute at all for any user. How does this work then? In the default user profile there is a Run Command in the registry the runs for every user creating logging on to the computer. In many scenarios we don’t want it to run at all. Yes, you can turn of Onedrive using a Group Policy but the Onedrive Setup will run for every user creating a profile on the system anyway. In Windows 10 Onedrive is builtin, in some scenarios you don’t want to use it as, for instance if you use both Onedrive and Onedrive for Business installed as that is confusing for the user.
