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)); }