summaryrefslogtreecommitdiffstats
path: root/4-remove.bat
diff options
context:
space:
mode:
Diffstat (limited to '4-remove.bat')
-rw-r--r--4-remove.bat12
1 files changed, 12 insertions, 0 deletions
diff --git a/4-remove.bat b/4-remove.bat
new file mode 100644
index 0000000..1ca76b4
--- /dev/null
+++ b/4-remove.bat
@@ -0,0 +1,12 @@
+rem applications
+rem remove onedrive, remove explorer tree item
+taskkill /f /im onedrive.exe
+if exist "%windir%\system32\onedrivesetup.exe" "%windir%\system32\onedrivesetup.exe" /uninstall
+if exist "%windir%\syswow64\onedrivesetup.exe" "%windir%\syswow64\onedrivesetup.exe" /uninstall
+reg delete "HKCR\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
+reg delete "HKCR\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
+rd /s /q "%userprofile%\OneDrive"
+rd /s /q "%localappdata%\Microsoft\OneDrive"
+rd /s /q "%programdata%\Microsoft OneDrive"
+rem remove internet explorer 11
+dism /online /disable-feature /featurename:Internet-Explorer-Optional-amd64 /NoRestart \ No newline at end of file