From 232c6d1de47c0fafd09f9ab3165a305765e5f2c9 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 25 Jun 2023 18:10:23 +0200 Subject: [PATCH] Remove `RunOnce` key on deregistering --- scripts/Windows/Scripts/Context.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index a99a8f84..ddef9d24 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -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() {