diff --git a/flash/scripts/03-system-registry.ps1 b/flash/scripts/03-system-registry.ps1 index 38e6fdb..ac68be4 100644 --- a/flash/scripts/03-system-registry.ps1 +++ b/flash/scripts/03-system-registry.ps1 @@ -241,13 +241,11 @@ catch { } # ----------------------------------------------------------------------- -# OneDrive - prevent setup and remove shortcuts +# OneDrive - uninstall from clean Windows (no policy block) +# NOTE: No policy key is set intentionally - M365 installation can reinstall +# and run OneDrive normally. Policy DisableFileSyncNGSC would prevent that. # ----------------------------------------------------------------------- -Write-Log " Disabling OneDrive" -Level INFO - -# Disable OneDrive via policy -Set-Reg -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive" ` - -Name "DisableFileSyncNGSC" -Value 1 +Write-Log " Uninstalling OneDrive" -Level INFO # Remove OneDriveSetup.exe if present $oneDrivePaths = @( diff --git a/scripts/03-system-registry.ps1 b/scripts/03-system-registry.ps1 index 38e6fdb..ac68be4 100644 --- a/scripts/03-system-registry.ps1 +++ b/scripts/03-system-registry.ps1 @@ -241,13 +241,11 @@ catch { } # ----------------------------------------------------------------------- -# OneDrive - prevent setup and remove shortcuts +# OneDrive - uninstall from clean Windows (no policy block) +# NOTE: No policy key is set intentionally - M365 installation can reinstall +# and run OneDrive normally. Policy DisableFileSyncNGSC would prevent that. # ----------------------------------------------------------------------- -Write-Log " Disabling OneDrive" -Level INFO - -# Disable OneDrive via policy -Set-Reg -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive" ` - -Name "DisableFileSyncNGSC" -Value 1 +Write-Log " Uninstalling OneDrive" -Level INFO # Remove OneDriveSetup.exe if present $oneDrivePaths = @(