Browse Source

Merge branch 'narutards/patch-2'

close #18
pull/24/head
Alex Hirsch 9 years ago
parent
commit
9b9e46a1e7
  1. 8
      scripts/remove-onedrive.ps1

8
scripts/remove-onedrive.ps1

@ -22,10 +22,10 @@ rm -Recurse -Force -ErrorAction SilentlyContinue "$env:userprofile\OneDrive"
rm -Recurse -Force -ErrorAction SilentlyContinue "C:\OneDriveTemp"
echo "Disable OneDrive via Group Policies"
Import-Registry(@"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\OneDrive]
"DisableFileSyncNGSC"=dword:00000001
"@)
if (-Not (Get-Item -Path "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\OneDrive\" -ErrorAction SilentlyContinue)) {
New-Item -Path "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\OneDrive\"
}
Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\OneDrive\" -Name DisableFileSyncNGSC -Value 1
echo "Remove Onedrive from explorer sidebar"
Import-Registry(@"

Loading…
Cancel
Save