Link to home
Start Free TrialLog in
Avatar of Dave Smith
Dave Smith

asked on

Microsoft OneDrive removal problem

Hello Used the following answer to remove Win 10 apps - https://www.experts-exchange.com/questions/29209554/Remove-all-apps-from-Windows-10-Ent.html?anchor=a43253411&notificationFollowed=267392558#a43253411

Microsoft OneDrive remains, I have the following script that removes OneDrive, however it only removes it for the logged on user and when I login as another user its still there – how to I remove it for all users? RemoveOneDrive.ps1


I would like to incorporate this removal of this OneDrive script in to the larger removal of all apps script, how would I do this? How would I incorporate this script into the original removal of all apps script? 
Avatar of fred hakim
fred hakim
Flag of United States of America image

I like o&O AppBuster.  Its a free app that will remove many apps from just one user, all users or the entire machine.  No installation needed, just download and run.  It does not get all the Xbox apps and I have not tried it on Microsoft one drive.  Buts its quick and easy to try.

See: https://www.oo-software.com/en/ooappbuster
Avatar of Dave Smith
Dave Smith

ASKER

Hi thanks but I'm looking for a script rather than a application that will accomplish the task of removing One Drive for all users  - can you assist? I want to use the script during the deployment of the image
This should do it:

reg load "hku\Default" "C:\Users\Default\NTUSER.DAT"
reg delete HKU\default\software\Microsoft\Windows\CurrentVersion\Run /v OneDriveSetup /f 
reg unload "hku\Default"

Open in new window

Thanks Micheal, should I use this as a PS or a CMD and where in the task sequence should it be placed? Could i add this to your PS script you provided to remove all apps?
ASKER CERTIFIED SOLUTION
Avatar of Michael B. Smith
Michael B. Smith
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Cheers Michael