From 535f151566ad95fa0f6eafba70322b8596d62a45 Mon Sep 17 00:00:00 2001 From: Axel Tripier Date: Sun, 28 Jun 2020 19:31:28 +0200 Subject: [PATCH] Add basic setup for Windows To Go install --- windows_to_go.ps1 | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 windows_to_go.ps1 diff --git a/windows_to_go.ps1 b/windows_to_go.ps1 new file mode 100644 index 0000000..5968521 --- /dev/null +++ b/windows_to_go.ps1 @@ -0,0 +1,32 @@ +# Boxstarter script for my portable Windows To Go install + +# We don't have to always validate UAC during this script run +Disable-UAC +# Ensure installing powershell modules don't prompt on needed dependencies +$ConfirmPreference = "None" + +# Utilities +choco install -y 7zip.install +choco install -y k-litecodecpackbasic + +# General +choco install -y firefox --params "/l:en-US /NoTaskbarShortcut /NoDesktopShortcut" + +# Chat +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 + +# Rename the computer +$computername = "GoFish-WinToGo" +if ($env:computername -ne $computername) { + Rename-Computer -NewName $computername -Restart +}