First open up notepad and paste the script in and save it someplace like your desktop.
Then you need to rename it to have a .bat file extension instead of .txt and the default for windows it to hide file extensions for known file types. You will need to turn that off to make this easier.
Once this is done and the file is named something like UninstallOneDrive.bat you then right click on it and select "Run as administrator."
What the script does is first kill One Drive that is running in memory then it runs OneDriveSetup program that has option of uninstall. After that it just cleans up the leftover files and removes the registry keys that make it show up in explorer.
View all comments
Show parent comment
1
u/Sloomoon Aug 17 '15
May you explain how to use this batch file :) ? Really want to remove OneDrive.