From cb32682aa37856c8b0bf17dc76b5cbcb18010ced Mon Sep 17 00:00:00 2001 From: Chuck Ricketts Date: Wed, 9 Feb 2022 01:00:28 -0600 Subject: [PATCH] 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 --- Windows10Debloater.ps1 | 3 +-- Windows10DebloaterGUI.ps1 | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Windows10Debloater.ps1 b/Windows10Debloater.ps1 index c69523c..cd04c3c 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 d90341a..db4b37e 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..."