diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index 59bfc6d2..3ab4804e 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -66,7 +66,7 @@ class Context { [void] ProcessDefaultUserKey([System.Action[Microsoft.Win32.RegistryKey]] $action) { $root = "HKLM:\DefaultUser"; - $hivePath = "$env:SystemRoot\Profiles\Default User\NTUSER.dat" + $hivePath = "$env:SystemDrive\Users\Default\NTUSER.dat" $null = & reg load $root.Replace(":", "") $hivePath; $action.Invoke((Get-Item $root)); }