From 19ad2e270abdba8eab15a0c22d7ea7b428951206 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 3 Jul 2023 14:35:16 +0200 Subject: [PATCH] Enable UAC on cleanup --- scripts/Windows/Scripts/Context.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index aa66a769..da07fd4f 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -290,6 +290,7 @@ class Context { [void] Cleanup() { $this.DeregisterNewUserReboot(); $this.RemoveAutologin(); + $this.SetUACState($true); Remove-Item $($this.EnsureConfigKey().PSPath); } }