Remove RunOnce key on deregistering

This commit is contained in:
Manuel Thalmann 2023-06-25 18:10:23 +02:00
parent 805394463a
commit 13e5346063

View file

@ -107,7 +107,7 @@ class Context {
}
[void] DeregisterNewUserReboot() {
$this.ProcessDefaultUserKey({ param ($root) Remove-ItemProperty -Path $this.GetRunOnceKey($root).PSPath $this.RunOnceName });
$this.ProcessDefaultUserKey({ param ($root) Remove-Item -Path $this.GetRunOnceKey($root).PSPath });
}
[void] Reboot() {