From 294eb7839a1a0a997c455b0c1503fd299b80a97d Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 25 Jun 2023 17:57:06 +0200 Subject: [PATCH] Fix key name for `reg load` --- scripts/Windows/Scripts/Context.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index 185cb7d3..59bfc6d2 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -67,7 +67,7 @@ class Context { [void] ProcessDefaultUserKey([System.Action[Microsoft.Win32.RegistryKey]] $action) { $root = "HKLM:\DefaultUser"; $hivePath = "$env:SystemRoot\Profiles\Default User\NTUSER.dat" - $null = & reg load $root $hivePath; + $null = & reg load $root.Replace(":", "") $hivePath; $action.Invoke((Get-Item $root)); }