Fix key name for reg load
This commit is contained in:
parent
972e1b6584
commit
294eb7839a
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ class Context {
|
||||||
[void] ProcessDefaultUserKey([System.Action[Microsoft.Win32.RegistryKey]] $action) {
|
[void] ProcessDefaultUserKey([System.Action[Microsoft.Win32.RegistryKey]] $action) {
|
||||||
$root = "HKLM:\DefaultUser";
|
$root = "HKLM:\DefaultUser";
|
||||||
$hivePath = "$env:SystemRoot\Profiles\Default User\NTUSER.dat"
|
$hivePath = "$env:SystemRoot\Profiles\Default User\NTUSER.dat"
|
||||||
$null = & reg load $root $hivePath;
|
$null = & reg load $root.Replace(":", "") $hivePath;
|
||||||
$action.Invoke((Get-Item $root));
|
$action.Invoke((Get-Item $root));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue