Skip to content

Instantly share code, notes, and snippets.

@JerryNixon
Created February 6, 2017 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save JerryNixon/cfad606d9ca9586c81e30ace633362a8 to your computer and use it in GitHub Desktop.
Save JerryNixon/cfad606d9ca9586c81e30ace633362a8 to your computer and use it in GitHub Desktop.
#Prep
Update-ExecutionPolicy Unrestricted
Disable-UAC
#Win Config
Set-TaskbarOptions -Size Small -Lock -Dock Top
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Disable-InternetExplorerESC
#OneDrive folders
if (!(Test-Path $env:UserProfile\OneDrive\Documents)) {
New-Item -Force -Path $env:UserProfile\OneDrive\Documents -Type Directory
}
Move-LibraryDirectory "Personal" "$env:UserProfile\OneDrive\Documents"
if (!(Test-Path $env:UserProfile\OneDrive\Music)) {
New-Item -Force -Path $env:UserProfile\OneDrive\Music -Type Directory
}
Move-LibraryDirectory "My Music" "$env:UserProfile\OneDrive\Music"
if (!(Test-Path $env:UserProfile\OneDrive\Pictures)) {
New-Item -Force -Path $env:UserProfile\OneDrive\Pictures -Type Directory
}
Move-LibraryDirectory "My Pictures" "$env:UserProfile\OneDrive\Pictures"
if (!(Test-Path $env:UserProfile\OneDrive\Videos)) {
New-Item -Force -Path $env:UserProfile\OneDrive\Videos -Type Directory
}
Move-LibraryDirectory "My Video" "$env:UserProfile\OneDrive\Videos"
#DotNet framework(s)
choco install dotnet3.5
if (Test-PendingReboot) { Invoke-Reboot }
choco install dotnet4.0
if (Test-PendingReboot) { Invoke-Reboot }
choco install dotnet4.5
if (Test-PendingReboot) { Invoke-Reboot }
choco install dotnet4.5.1
if (Test-PendingReboot) { Invoke-Reboot }
choco install dotnet4.5.2
if (Test-PendingReboot) { Invoke-Reboot }
choco install DotNet4.6
if (Test-PendingReboot) { Invoke-Reboot }
#Windows updates
Install-WindowsUpdate -AcceptEula -GetUpdatesFromMS
if (Test-PendingReboot) { Invoke-Reboot }
cinst Microsoft-Hyper-V-All -source windowsfeatures
Disable-MicrosoftUpdate
#Primary software
choco install irfanview -y
choco install irfanviewplugins -y
choco install f.lux -y
choco install googlechrome -y
choco install teamviewer -y
choco install openlivewriter -y
choco install office365proplus -y
choco install lastpass -y
choco install skype -y
#Developer software
choco install github -y
choco install visualstudiocode -y
choco install visualstudio2015community -y
#Other software
choco install nodejs -y
choco install dropbox -y
choco install quicktime -y
#Post
Update-ExecutionPolicy Unrestricted
Enable-MicrosoftUpdate
Enable-UAC
#Good measure
Install-WindowsUpdate -acceptEula -GetUpdatesFromMS
if (Test-PendingReboot) { Invoke-Reboot }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment