Just wondering if anyone can successfully uninstall OneDrive using PowerShell on Windows 10/11. The uninstall flag on the executable doesn't remove it even if processes are killed first.
OneDriveSetup.exe /uninstall
The command doesn't appear to be doing anything. Need to uninstall the OneDrive that comes with the OS to install it in a way that its compatible using the machine wide installer Azure Virtual Desktop/AllUsersInstall. Manually uninstalling from control panel works but I need an unattended uninstall for Azure Image Builder.
Appreciate the help