Skip to content

Instantly share code, notes, and snippets.

@AzimsTech
Forked from valinet/StartupOnce.bat
Last active June 30, 2022 19:03
Show Gist options
  • Save AzimsTech/8abd35c04abe4c4791ec7a42766fe853 to your computer and use it in GitHub Desktop.
Save AzimsTech/8abd35c04abe4c4791ec7a42766fe853 to your computer and use it in GitHub Desktop.
Windows 10 deployment script that runs once for each newly created user account.
echo Y|del %appdata%\microsoft\windows\recent\automaticdestinations\*
rem Uninstall Photos
:: powershell -command "Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage"
rem Set region to English (Malaysia), regional format to Engliish (Malaysia), add English (Malaysia) keyboard
powershell -command Set-Culture -CultureInfo ro-RO
powershell -command Set-WinHomeLocation -GeoId 167
powershell -command "$langs = Get-WinUserLanguageList; $langs.Add(\"en-MY\"); Set-WinUserLanguageList $langs -Force"
powershell -command "Set-TimeZone -Id \"Singapore Standard Time\" -PassThru"
rem Install appx packages: HEVC codec, Pride theme
powershell -command Add-AppxPackage C:\Tools\packages\Microsoft.Pride2020Flags_3.0.0.0_neutral__8wekyb3d8bbwe.Appx
:: powershell -command Add-AppxPackage C:\Tools\packages\CanonicalGroupLimited.UbuntuonWindows_2004.2020.418.0_neutral_~_79rhkp1fndgsc.AppxBundle
powershell -command Add-AppxPackage C:\Tools\packages\Microsoft.HEVCVideoExtension_2.0.51121.0_x64__8wekyb3d8bbwe.Appx
rem Open Default apps settings page
powershell -command Start-Process "ms-settings:defaultapps"
rem Install Chocolatey, Chrome & Easy 7-zip
powershell -command "Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')); choco install -y googlechrome easy7zip"
del %0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment