diff --git a/bootstrap/nano11builder-headless.ps1 b/bootstrap/nano11builder-headless.ps1 index 54e9db6..9aa29cd 100644 --- a/bootstrap/nano11builder-headless.ps1 +++ b/bootstrap/nano11builder-headless.ps1 @@ -856,8 +856,8 @@ function Apply-RegistryTweaks { Set-RegistryValue 'HKLM\zSOFTWARE\Policies\Microsoft\Windows\OneDrive' 'DisableFileSyncNGSC' 'REG_DWORD' '1' # Remove OneDrive from Run keys (prevent auto-install on first login) - Remove-RegistryValue "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\Run\OneDriveSetup" - Remove-RegistryValue "HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\Run\OneDriveSetup" + Remove-RegistryKey "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\Run\OneDriveSetup" + Remove-RegistryKey "HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\Run\OneDriveSetup" # Disable telemetry Set-RegistryValue 'HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo' 'Enabled' 'REG_DWORD' '0'