Fix incorrect default user path
This commit is contained in:
parent
294eb7839a
commit
5e27e16a85
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue