|
@ -33,6 +33,12 @@ mkdir -Force "HKCR:\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" |
|
|
sp "HKCR:\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" "System.IsPinnedToNameSpaceTree" 0 |
|
|
sp "HKCR:\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" "System.IsPinnedToNameSpaceTree" 0 |
|
|
Remove-PSDrive "HKCR" |
|
|
Remove-PSDrive "HKCR" |
|
|
|
|
|
|
|
|
|
|
|
# Thank you Matthew Israelsson |
|
|
|
|
|
echo "Removing run hook for new users" |
|
|
|
|
|
reg load "hku\Default" "C:\Users\Default\NTUSER.DAT" |
|
|
|
|
|
reg delete "HKEY_USERS\Default\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "OneDriveSetup" /f |
|
|
|
|
|
reg unload "hku\Default" |
|
|
|
|
|
|
|
|
echo "Removing startmenu entry" |
|
|
echo "Removing startmenu entry" |
|
|
rm -Force -ErrorAction SilentlyContinue "$env:userprofile\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk" |
|
|
rm -Force -ErrorAction SilentlyContinue "$env:userprofile\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk" |
|
|
|
|
|
|
|
|