Last active
March 29, 2019 21:19
-
-
Save michael-golfi/c450df336723dcbd3ec8649788f4de1c to your computer and use it in GitHub Desktop.
Windows Install Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$User = Read-Host -Prompt "Input your username" | |
# Install Chocolatey | |
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).Downloa | |
dString('https://chocolatey.org/install.ps1')) | |
# | |
# Install Programs | |
# | |
choco install jre8 -y | |
choco install git /GitAndUnixToolsOnPath:true /NoAutoCrlf:true -y | |
choco install googlechrome -y | |
choco install firefox /PinnedToTaskbar:true -y | |
choco install androidstudio -y | |
choco install docker -y | |
choco install visualstudiocode -y | |
choco install golang -y | |
choco install spotify -y | |
choco install office365proplus -y | |
choco install f.lux -y | |
choco install dotnetcore -y | |
choco install ubiquiti-unifi-controller -y | |
choco install winrar -y | |
choco install nodejs -y | |
# | |
# Apply the start menu layout | |
# | |
$StartMenuUri = "https://gist.githubusercontent.com/michael-golfi/c450df336723dcbd3ec8649788f4de1c/raw/5db6f24386805f7b430e5e930cee18be23e77493/startmenu.xml" | |
$StartMenuPath = "C:\Users\$User\Downloads\startmenu.xml" | |
Invoke-WebRequest -Uri $StartMenuUri -OutFile $StartMenuPath | |
Import-StartLayout –LayoutPath $StartMenuPath –MountPath $env:SystemDrive\ | |
$StoreRegistry = "HKCU:\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store" | |
if (Test-Path $StoreRegistry) { | |
Remove-Item $FileName -Recurse | |
} | |
# | |
# Disable Running Apps On Startup By Name | |
# | |
# $StartupValue=([byte[]](0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00)) | |
# $StartupPath="HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run" | |
# $AppsToDisable="Java Update Scheduler", "SpotifyWebHelper", "Surface DTX" | |
# $AppsToDisable | ForEach-Object -Process {Set-ItemProperty $StartupPath -Name $_ -Value $StartupValue} | |
# | |
# Create Public Outbound Firewall Rules | |
# | |
# $AllowedApps = @( | |
# @{ Name = "Allow Java JDK"; Desc = "Allow Outbound Java on Public Networks"; Path = "C:\program files\java\jdk1.8.0_152\jre\bin\java.exe" }, | |
# @{ Name = "Allow Spotify"; Desc = "Allow Outbound Spotify on Public Networks"; Path = "C:\users\$User\appdata\roaming\spotify\spotify.exe" } | |
# ) | |
# $AllowedApps | ForEach-Object -Process {New-NetFirewallRule -Program $_.Path -Action Allow -Profile Domain, Public -DisplayName $_.Name -Description $_.Desc -Direction Outbound} | |
# Need to relogin to apply start menu changes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Other tidbit issues: