Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Fix OneDrive Policy #495

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Windows10Debloater.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand Down
3 changes: 1 addition & 2 deletions Windows10DebloaterGUI.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand Down