diff --git a/Windows10Debloater.ps1 b/Windows10Debloater.ps1 index c69523ce..cd04c3c4 100644 --- a/Windows10Debloater.ps1 +++ b/Windows10Debloater.ps1 @@ -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..." diff --git a/Windows10DebloaterGUI.ps1 b/Windows10DebloaterGUI.ps1 index d90341ad..db4b37e1 100644 --- a/Windows10DebloaterGUI.ps1 +++ b/Windows10DebloaterGUI.ps1 @@ -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..."