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.
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