Browse Source

Re-enable UAC at the very end to not get it for computer rename

master
Axel Tripier 6 years ago
parent
commit
9bda92dbef
  1. 6
      windows_to_go.ps1

6
windows_to_go.ps1

@ -18,9 +18,6 @@ choco install -y discord
# Games # Games
choco install -y leagueoflegendseuw --ignore-checksum choco install -y leagueoflegendseuw --ignore-checksum
# Re-enable UAC
Enable-UAC
# Install Microsoft updates # Install Microsoft updates
Enable-MicrosoftUpdate Enable-MicrosoftUpdate
Install-WindowsUpdate -acceptEula -criteria "IsHidden=0 and IsInstalled=0" # Also install non-critical and non-Software updates 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) { if ($env:computername -ne $computername) {
Rename-Computer -NewName $computername -Restart Rename-Computer -NewName $computername -Restart
} }
# Re-enable UAC
Enable-UAC

Loading…
Cancel
Save