Added key to disable OneDrive throughout Windows

pull/82/head
Richard Newton 6 years ago committed by GitHub
parent 3078379728
commit ca01f1e13c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -599,6 +599,17 @@ Function UninstallOneDrive {
Set-ItemProperty $ExplorerReg2 System.IsPinnedToNameSpaceTree -Value 0
Write-Output "Restarting Explorer that was shut down before."
Start-Process explorer.exe -NoNewWindow
Write-Host "Enabling the Group Policy 'Prevent the usage of OneDrive for File Storage'."
$OneDriveKey = 'HKLM:Software\Policies\Microsoft\Windows\OneDrive'
If (!(Test-Path $OneDriveKey)) {
Mkdir $OneDriveKey
}
$DisableAllOneDrive = 'HKLM:Software\Policies\Microsoft\Windows\OneDrive'
If (Test-Path $DisableAllOneDrive) {
New-ItemProperty $DisableAllOneDrive -Name OneDrive -Value DisableFileSyncNGSC -Verbose
}
}
#GUI prompt Debloat/Revert options and GUI variables

Loading…
Cancel
Save