You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
41 lines
1.1 KiB
# 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 |
|
|
|
# Browser |
|
choco install -y firefox --params "/l:en-US /NoTaskbarShortcut /NoDesktopShortcut" |
|
choco install -y setdefaultbrowser |
|
SetDefaultBrowser HKLM Firefox-308046B0AF4A39CB |
|
|
|
# Chat |
|
choco install -y discord |
|
|
|
# Games |
|
choco install -y leagueoflegendseuw --ignore-checksum |
|
|
|
# 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 |
|
} |
|
|
|
# Re-enable UAC |
|
Enable-UAC |
|
|
|
# Power profile |
|
## Set to maximum performances |
|
powercfg /s scheme_min |
|
## Do not sleep when lid is closed |
|
powercfg /setacvalueindex scheme_min sub_buttons lidaction 0 |
|
powercfg /setdcvalueindex scheme_min sub_buttons lidaction 0
|
|
|