Last active
July 4, 2018 11:56
-
-
Save kpietralik/00baa565a774c4f3b9a2e35feefe700c to your computer and use it in GitHub Desktop.
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
#### Boxstarter and Chocolatey | |
## Restore AppData before running | |
## RUN AS ADMIN! | |
## choco install - install | |
## choco upgrade - install or upgrade | |
## cinst - install | |
## cinstm - install or upgrade | |
## Cmd run with reboot START http://boxstarter.org/package/url?C:\Boxstarter.ps1 | |
## Cmd run without reboot START http://boxstarter.org/package/nr/url?C:\Boxstarter.ps1 | |
## START http://boxstarter.org/package/url?https://gist.githubusercontent.com/Quass1m/00baa565a774c4f3b9a2e35feefe700c/raw/ | |
#### | |
# Boxstarter options | |
$Boxstarter.RebootOk=$false | |
$Boxstarter.NoPassword=$true | |
$Boxstarter.AutoLogin=$true | |
if (Test-PendingReboot) { Invoke-Reboot } # ------ REBOOT ------ | |
# Disable UAC and bloatware | |
Disable-UAC | |
Disable-InternetExplorerESC | |
Disable-GameBarTips | |
Disable-BingSearch | |
# Update Windows | |
if (Test-PendingReboot) { Invoke-Reboot } # ------ REBOOT ------ | |
Install-WindowsUpdate -AcceptEula | |
if (Test-PendingReboot) { Invoke-Reboot } # ------ REBOOT ------ | |
Update-ExecutionPolicy Unrestricted | |
Update-Help | |
if (Test-PendingReboot) { Invoke-Reboot } # ------ REBOOT ------ | |
# Install IIS and its features | |
cinst NetFx3 -source windowsFeatures | |
cinst IIS-WebServerRole -source windowsfeatures | |
cinst TelnetClient -source windowsFeatures | |
cinst IIS-HttpCompressionDynamic -source windowsfeatures | |
cinst IIS-ManagementScriptingTools -source windowsfeatures | |
cinst IIS-WindowsAuthentication -source windowsfeatures | |
if (Test-PendingReboot) { Invoke-Reboot } # ------ REBOOT ------ | |
# Install system utilities | |
cinst PowerShell | |
cinst vcredist2010 | |
cinst vcredist140 | |
cinst dotnetcore | |
cinst dotnetcore-sdk | |
cinst dotnetfx | |
cinst mono | |
if (Test-PendingReboot) { Invoke-Reboot } # ------ REBOOT ------ | |
# Modify explorer, taskbar, desktop, login | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -DisableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar -DisableOpenFileExplorerToQuickAccess -DisableShowRecentFilesInQuickAccess -DisableShowFrequentFoldersInQuickAccess -DisableExpandToOpenFolder | |
#Set-TaskbarOptions -Size Small | |
Set-CornerNavigationOptions -EnableUsePowerShellOnWinX | |
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst | |
Set-TaskbarOptions -Size Large -UnLock -Dock Bottom -Combine Always | |
# Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneExpandToCurrentFolder -Value 1 | |
# Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneShowAllFolders -Value 1 | |
# Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Value 1 | |
# Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name MMTaskbarMode -Value 2 | |
if (Test-PendingReboot) { Invoke-Reboot } # ------ REBOOT ------ | |
# Modify remoting and updates | |
Enable-RemoteDesktop | |
Enable-PSRemoting -Force -SkipNetworkProfileCheck | |
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux | |
#Enable-MicrosoftUpdate | |
if (Test-PendingReboot) { Invoke-Reboot } # ------ REBOOT ------ | |
# Move library location | |
# Move-LibraryDirectory "Personal" "D:\Personal" | |
# Move-LibraryDirectory "My Pictures" "D:\Personal\Pictures" | |
# Move-LibraryDirectory "My Video" "D:\Personal\Videos" | |
# Move-LibraryDirectory "My Music" "D:\Music" | |
##Move-LibraryDirectory "{374DE290-123F-4565-9164-39C4925E467B}" "D:\Downloads" | |
##Move-LibraryDirectory "{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}" "D:\Personal\Saved Games" | |
if (Test-PendingReboot) { Invoke-Reboot } # ------ REBOOT ------ | |
# Install applications | |
cinst chocolatey | |
cinst boxstarter | |
cinst wudt | |
cinst chocolatey-core.extension | |
cinst 7zip | |
cinst allow-block-remove-firewall | |
cinst autohotkey.portable | |
cinst calibre | |
cinst chocolateygui | |
cinst ccleaner | |
#cinst cdburnerxp | |
cinst clink | |
cinst cpu-z | |
cinst dropbox | |
cinst dws.portable | |
cinst gpu-z | |
cinst hwinfo | |
cinst openhardwaremonitor | |
cinst coretemp | |
cinst crystaldiskinfo | |
cinst crystaldiskmark | |
cinst firefox | |
cinst foobar2000 | |
cinst googlechrome | |
cinst googledrive | |
cinst greenshot | |
cinst irfanview | |
cinst jdk8 | |
cinst jre8 | |
cinst jdk9 | |
cinst jre9 | |
cinst k-litecodecpackfull | |
cinst lockhunter | |
cinst notepadplusplus | |
cinst glogg | |
cinst paint.Net | |
cinst pip | |
cinst qbittorrent | |
cinst rufus | |
cinst skype | |
cinst speccy | |
cinst steam | |
cinst virtualbox | |
cinst vlc | |
cinst wget | |
cinst windirstat | |
cinst winscp | |
cinst wireshark | |
cinst youtube-dl | |
cinst teamspeak | |
cinst mumble | |
cinst spotify | |
cinst ditto | |
cinst firacode | |
#cinst f.lux | |
#cinst miktex | |
#cinst TeXstudio | |
if (Test-PendingReboot) { Invoke-Reboot } # ------ REBOOT ------ | |
# Development specific applications | |
cinst windowsazurelibsfornet | |
cinst NugetPackageExplorer | |
cinst curl | |
cinst cmder | |
cinst hyper | |
cinst cygwin | |
cinst firacode | |
cinst fciv | |
cinst filezilla | |
cinst gcloudsdk | |
cinst git -params '"/GitAndUnixToolsOnPath"' | |
cinst git-credential-winstore | |
cinst poshgit | |
cinst intellijidea-community | |
cinst linqpad | |
cinst nuget.commandline | |
cinst nimbletext | |
cinst posh-git | |
cinst powershell | |
cinst azure-cli | |
cinst procexp | |
cinst putty | |
cinst python | |
cinst anaconda3 /AddToPath:1 | |
cinst postman | |
cinst sysinternals | |
cinst vim | |
cinst visualstudiocode | |
cinst windbg | |
cinst winmerge | |
cinst Microsoft-Hyper-V-All -source windowsFeatures | |
cinst Microsoft-Windows-Subsystem-Linux -source windowsfeatures | |
cinst docker | |
cinst docker-for-windows | |
Install-WebPackage 'Docker Toolbox' 'exe' '/SILENT /COMPONENTS="Docker,DockerMachine,DockerCompose,VirtualBox,Kitematic" /TASKS="modifypath"' $tempInstallFolder https://github.com/docker/toolbox/releases/download/v1.9.1i/DockerToolbox-1.9.1i.exe | |
#cinst rapidee | |
#cinst scala | |
#cinst lessmsi | |
#cinst packer | |
#cinst golang | |
#cinst vagrant | |
#cinst sql-server-express | |
#cinst tortoisegit | |
#cinst windowsazurepowershell | |
#cinst microsoftazurestorageexplorer | |
#cinst servicebusexplorer | |
if (Test-PendingReboot) { Invoke-Reboot } # ------ REBOOT ------ | |
# Add to Path environment variable | |
Install-ChocolateyPath -PathToInstall "$($Boxstarter.programFiles86)\Git" | |
Install-ChocolateyPath -PathToInstall "$($Boxstarter.programFiles86)\Git\bin" | |
$env:PSModulePath = $env:PSModulePath + ";C:\Program Files\Git\bin" | |
if (Test-PendingReboot) { Invoke-Reboot } # ------ REBOOT ------ | |
# Taskbar items and desktop icons | |
Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles86)\Google\Chrome\Application\chrome.exe" | |
Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles86)Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe" | |
Install-ChocolateyShortcut ` | |
-ShortcutFilePath "C:\Users\Admin\Desktop\Notepad++.lnk" ` | |
-TargetPath "C:\Program Files\Notepad++\notepad++.exe" ` | |
-WindowStyle 3 ` | |
-RunAsAdmin ` | |
-PinToTaskbar | |
if (Test-PendingReboot) { Invoke-Reboot } # ------ REBOOT ------ | |
# Modify registy properties | |
Set-ItemProperty -Path HKCU:\Software\Microsoft\VisualStudio\15.0\General -Name SuppressUppercaseConversion -Type DWord -Value 1 | |
Set-ItemProperty -Path HKCU:\Software\Microsoft\VisualStudio\17.0\General -Name SuppressUppercaseConversion -Type DWord -Value 1 | |
Set-ItemProperty -Path HKCU:\Console\%SystemRoot%_system32_cmd.exe -Name QuickEdit -Type DWord -Value 0 | |
Set-ItemProperty -Path HKCU:\Console\%SystemRoot%_System32_WindowsPowerShell_v1.0_powershell.exe -Name QuickEdit -Type DWord -Value 0 | |
Set-ItemProperty -Path HKCU:\Console\%SystemRoot%_SysWOW64_WindowsPowerShell_v1.0_powershell.exe -Name QuickEdit -Type DWord -Value 0 | |
### Finishing up | |
# Re-enable UAC | |
Enable-UAC | |
if (Test-PendingReboot) { Invoke-Reboot } # ------ REBOOT ------ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment