mirror of
https://github.com/Sycnex/Windows10Debloater.git
synced 2024-11-24 11:45:29 +00:00
Fix OneDrive Policy
Apply the "Prevent the usage of OneDrive for file storage" policy correctly. Previously, it created HKLM:Software\Policies\Microsoft\Windows\OneDrive\OneDrive="DisableFileSyncNGSC". However, the value should be HKLM:Software\Policies\Microsoft\Windows\OneDrive\DisableFileSyncNGSC=1
This commit is contained in:
parent
a48b4d8dc5
commit
cb32682aa3
@ -574,9 +574,8 @@ Function UninstallOneDrive {
|
||||
$OneDriveKey = 'HKLM:Software\Policies\Microsoft\Windows\OneDrive'
|
||||
If (!(Test-Path $OneDriveKey)) {
|
||||
Mkdir $OneDriveKey
|
||||
Set-ItemProperty $OneDriveKey -Name OneDrive -Value DisableFileSyncNGSC
|
||||
}
|
||||
Set-ItemProperty $OneDriveKey -Name OneDrive -Value DisableFileSyncNGSC
|
||||
Set-ItemProperty $OneDriveKey -Name DisableFileSyncNGSC -Value 1
|
||||
}
|
||||
|
||||
Write-Host "Uninstalling OneDrive. Please wait..."
|
||||
|
@ -1408,9 +1408,8 @@ $RemoveOnedrive.Add_Click( {
|
||||
$OneDriveKey = 'HKLM:Software\Policies\Microsoft\Windows\OneDrive'
|
||||
If (!(Test-Path $OneDriveKey)) {
|
||||
Mkdir $OneDriveKey
|
||||
Set-ItemProperty $OneDriveKey -Name OneDrive -Value DisableFileSyncNGSC
|
||||
}
|
||||
Set-ItemProperty $OneDriveKey -Name OneDrive -Value DisableFileSyncNGSC
|
||||
Set-ItemProperty $OneDriveKey -Name DisableFileSyncNGSC -Value 1
|
||||
}
|
||||
|
||||
Write-Host "Uninstalling OneDrive. Please wait..."
|
||||
|
Loading…
Reference in New Issue
Block a user