Uninstall OneDrive per user package
I know that PDQ has a package for uninstalling some programs such as Google Chrome that were installed on a per user basis, using Powershell. I'm just curious if anyone has something similar for uninstalling all instances of Microsoft OneDrive on a machine? I can do a per user uninstall if the specific user is logged in, but I'm looking for something to capture and uninstall for all users, current and past, on the machine. Can anyone offer some help? Thanks in advance.
0
Comments
This works for me, although most stations it throws an error on the first line that the Process wasn't found, but this has removed it for any local Windows accounts that have previously logged on, or for a new user logging on.
However, and I may be preaching to the choir, check your Windows Updates so they don't re-enable it, as well as when/if you do a Feature Update (ex. 1903 to 1909/2004), it will enable almost all disabled Windows built-in applications.
Wouldn't GPO work better at this?
I may be completely wrong, but the GPO settings will prevent future setups, but not erase old setups.
The script actually did not work for me, again except for the currently logged in user. When i attempted to run this against a machine that had previous installations, It errored and actually added a new instance under the local admin account.
I used decrapify (if you google it, you should be able to find it) and modified it on what I wanted installed and not installed. After each win10 workstation I run new workstation job that run the decrapify script and bunch of other things that i want installed.
https://community.spiceworks.com/scripts/show/4378-windows-10-decrapifier-18xx-19xx-2xxx
Again...and I may be wrong, this works great to prevent future installs, but does it remove existing installations for all users?
good question, I haven't tested that. Can you be the beta tester :)