-
-
Save PSingletary/1561b95949bbd6a1102df30fb53ee64d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#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