Disassembler0 / Win10-Initial-Setup-Script

PowerShell script for automation of routine tasks done after fresh installations of Windows 10 / Server 2016 / Server 2019
MIT License
4.7k stars 1.08k forks source link

Disable/Uninstall OneDrive #248

Closed driscollw closed 5 years ago

driscollw commented 5 years ago

After running the script with the DisableOneDrive and UninstallOneDrive powershell had issues finding my default profile. This was due to having the option to backup the Document,Photos and Video to OneDrive. When this is enabled it will redirect these folders to OneDrive which no longer installed. The fix was to manually correct the registry to redirect back the original state. Below is a site I used to research the registry keys that I needed to change. If a user does not have this option enabled in OneDrive then there would be no issues. Not sure if the script should changes these registry keys or warn the user that a redirect is in place and to disable prior to running these options.

https://www.majorgeeks.com/content/page/how_to_restore_default_shell_folders_(musicvideospicturesdocuments).html