mirror of
https://github.com/W4RH4WK/Debloat-Windows-10.git
synced 2024-11-17 15:25:37 +00:00
Update remove-onedrive.ps1
This commit is contained in:
parent
43aa460fdb
commit
3b77c1cb8e
@ -22,6 +22,9 @@ rm -Recurse -Force -ErrorAction SilentlyContinue "$env:userprofile\OneDrive"
|
||||
rm -Recurse -Force -ErrorAction SilentlyContinue "C:\OneDriveTemp"
|
||||
|
||||
echo "Disable OneDrive via Group Policies"
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user