From 95bebfeccf5511f24d3c713b283b173e50777b88 Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Tue, 26 May 2026 19:32:19 +0200 Subject: [PATCH] Fix onedrive registry key removal Signed-off-by: Stefan Knoblich --- bootstrap/nano11builder-headless.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'