Skip to content

Instantly share code, notes, and snippets.

@RubenFlorissen
Last active February 18, 2020 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RubenFlorissen/83ec7d754660d961b72e950211df521b to your computer and use it in GitHub Desktop.
Save RubenFlorissen/83ec7d754660d961b72e950211df521b to your computer and use it in GitHub Desktop.
PowerShell Script For Barebone Windows Install
# Feel free to copy anything from this script!
# Run this as an ADMIN!
# Needed for Chocolately install
# If the script gives you any errors, it's likely that you haven't set the ExecutionPolicy to Unrestricted. Run the code below to do this.
# Set-ExecutionPolicy Unrestricted
# Please note that this is not secure, this will result in the possibility that malicious programs can freely execute PowerShell scripts on the computer. Set this flag to: Set-ExecutionPolicy Restricted, after running this script!
# Install Chocolately
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Install Base Apps
choco install firefox
choco install 7zip
choco install sharex
choco install vscode
choco install procexp
# Uninstall Windows Bloatware App Packages
# Bing trash
Get-AppxPackage Microsoft.BingFinance | Remove-AppxPackage
Get-AppxPackage Microsoft.BingNews | Remove-AppxPackage
Get-AppxPackage Microsoft.BingSports | Remove-AppxPackage
Get-AppxPackage Microsoft.BingWeather | Remove-AppxPackage
# Other Packages
Get-AppxPackage Microsoft.3DBuilder | Remove-AppxPackage
Get-AppxPackage *Dropbox* | Remove-AppxPackage
Get-AppxPackage *Facebook* | Remove-AppxPackage
Get-AppxPackage Microsoft.WindowsFeedbackHub | Remove-AppxPackage
Get-AppxPackage Microsoft.Getstarted | Remove-AppxPackage
Get-AppxPackage Microsoft.WindowsMaps | Remove-AppxPackage
Get-AppxPackage Microsoft.Messaging | Remove-AppxPackage
Get-AppxPackage *Minecraft* | Remove-AppxPackage
Get-AppxPackage *Netflix* | Remove-AppxPackage
Get-AppxPackage Microsoft.MicrosoftOfficeHub | Remove-AppxPackage
Get-AppxPackage Microsoft.OneConnect | Remove-AppxPackage
Get-AppxPackage Microsoft.Office.OneNote | Remove-AppxPackage
Get-AppxPackage Microsoft.People | Remove-AppxPackage
Get-AppxPackage Microsoft.WindowsPhone | Remove-AppxPackage
Get-AppxPackage *Plex* | Remove-AppxPackage
Get-AppxPackage Microsoft.SkypeApp | Remove-AppxPackage
Get-AppxPackage Microsoft.WindowsSoundRecorder | Remove-AppxPackage
Get-AppxPackage *Solitaire* | Remove-AppxPackage
Get-AppxPackage Microsoft.Office.Sway | Remove-AppxPackage
Get-AppxPackage *Twitter* | Remove-AppxPackage
Get-AppxPackage Microsoft.XboxApp | Remove-AppxPackage
Get-AppxPackage Microsoft.XboxIdentityProvider | Remove-AppxPackage
Get-AppxPackage Microsoft.ZuneMusic | Remove-AppxPackage
Get-AppxPackage Microsoft.ZuneVideo | Remove-AppxPackage
# Privacy Settings:
# I've decided to leave out privacy settings, because most of these settings can be changed while installing Windows 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment