Remove RunOnce key on deregistering

This commit is contained in:
Manuel Thalmann 2023-06-25 18:10:23 +02:00
parent 284dba9fc3
commit 232c6d1de4

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() {