From 9bda92dbef1c1e6486f456bc408b2c165e219c2e Mon Sep 17 00:00:00 2001 From: Axel Tripier Date: Sun, 28 Jun 2020 19:52:30 +0200 Subject: [PATCH] Re-enable UAC at the very end to not get it for computer rename --- windows_to_go.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/windows_to_go.ps1 b/windows_to_go.ps1 index 5968521..1c7ec62 100644 --- a/windows_to_go.ps1 +++ b/windows_to_go.ps1 @@ -18,9 +18,6 @@ choco install -y discord # Games choco install -y leagueoflegendseuw --ignore-checksum -# Re-enable UAC -Enable-UAC - # Install Microsoft updates Enable-MicrosoftUpdate Install-WindowsUpdate -acceptEula -criteria "IsHidden=0 and IsInstalled=0" # Also install non-critical and non-Software updates @@ -30,3 +27,6 @@ $computername = "GoFish-WinToGo" if ($env:computername -ne $computername) { Rename-Computer -NewName $computername -Restart } + +# Re-enable UAC +Enable-UAC