#As described here: http://boxstarter.org/Learn/WebLauncher #The command to run, built from the raw link of this gist #START http://boxstarter.org/package/nr/url?https://gist.github.com/shiestie/3dec63f0b329551ffef9ee929b98ea8e/raw/2d57a34b1f0f135d631701c612b2203b3c258604/Win10Daily_BoxSetup ### GENERAL BOXSTARTER SETTINGS ### $Boxstarter.RebootOk=$true # Allow reboots? $Boxstarter.NoPassword=$false # Is this a machine with no login password? $Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot Update-ExecutionPolicy Unrestricted Disable-UAC Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted iwr https://chocolatey.org/install.ps1 | iex #Choco Install ### WINDOWS SETTINGS ### # .NET 4.6 choco install DotNet4.6 if (Test-PendingReboot) { Invoke-Reboot } # .NET 3.5 choco install DotNet3.5 if (Test-PendingReboot) { Invoke-Reboot } # .NET 4.5 choco install DotNet4.5 if (Test-PendingReboot) { Invoke-Reboot } ####change power settings for installs ######################## #Write-BoxstarterMessage "Setting Windows power plan to $preferredPlan" #$guid = (Get-WmiObject -Class win32_powerplan -Namespace root\cimv2\power -Filter "ElementName='High performance'").InstanceID.tostring() #$regex = [regex]"{(.*?)}$" #$newpowerVal = $regex.Match($guid).groups[1].value #powercfg -S $newpowerVal Write-BoxstarterMessage "Setting Standby Timeout to Never" powercfg -change -standby-timeout-ac 0 powercfg -change -standby-timeout-dc 0 Write-BoxstarterMessage "Setting Monitor Timeout to 240 minutes" powercfg -change -monitor-timeout-ac 240 powercfg -change -monitor-timeout-dc 20 Write-BoxstarterMessage "Setting Disk Timeout to Never" powercfg -change -disk-timeout-ac 0 powercfg -change -disk-timeout-dc 0 Write-BoxstarterMessage "Turning off Windows Hibernation" powercfg -h off Write-BoxstarterMessage "Doing one round of Windows Updates then Disabling until Boxstarter is Finished." # Update Windows and reboot if necessary Install-WindowsUpdate -AcceptEula -GetUpdatesFromMS if (Test-PendingReboot) { Invoke-Reboot } Disable-MicrosoftUpdate Write-BoxstarterMessage "Installing Selected Software" # Important Software choco install 7zip.install -y choco install Firefox -y choco install thunderbird -y choco install keepass.install -y choco install discord -y choco install dropbox -y choco install boxcryptor -y choco install qbittorrent -y #choco install vcredist2015 -y #choco install vcredist2012 -y # System Software choco install WindowsSystemControlCenter -y #choco install sysinternals -y choco install curl -y choco install wget -y choco install chocolateygui -y choco install malwarebytes -y choco install ccleaner -y choco install ccenhancer -y choco install advancedsystemtweaker -y #choco install avginternetsecurity -y #choco install avgpctuneup -y choco install windows-tweaker -y choco install windirstat -y choco install glasswire -y choco install realtek-hd-audio-driver -y # Development Software choco install SublimeText3 -y choco install SublimeText3.PackageControl -y choco install jivkok.SublimeText3.Packages -y choco install sonyvegaspro -y choco install adobe-creative-cloud -y #choco install VisualStudio2015Professional -packageParameters "--AdminFile https://gist.github.com/shiestie/6858c7c67f5cec133b4bf7c961e20dcf/raw/b3acc29cd1a7596219fb177ea09c7ed343dcefed/AdminDeployment.xml" -y #choco install git -y #choco install sourcetree -y #choco install dotPeek -y #choco install vagrant #choco install Git-Credential-Manager-for-Windows -y #choco install ecplise -y #choco install jdk8 -y #choco install AndroidStudio -y #choco install intellijidea-community -y #choco install visualstudiocode -params /NoDesktopIcon /NoQuicklaunchIcon -y #choco install apktool -y #Media choco install vlc -y choco install ffmpeg -y choco install spotify -y choco install flashplayerplugin -y choco install plexmediaserver -y choco install cccp -y # Optional Software #choco install googlechrome -y choco install rufus.install -y choco install vmwareworkstation -y choco install steam -y choco install AdobeAIR -y choco install sumatrapdf.install -y #choco install VirtualCloneDrive -y choco install googledrive -y choco install winmerge -y #choco install fiddler4 -y #choco install realvnc -y choco install cheatengine -y # Fonts choco install sourcecodepro -y choco install RobotoFonts -y choco install ubuntu.font -y choco install opensans -y choco install MesloLG.DZ -y choco install bitstreamverafonts -y choco install dejavufonts -y choco install # Windows Features #cinst Microsoft-Hyper-V-All -source windowsFeatures #cinst IIS-WebServerRole -source windowsfeatures #cinst IIS-HttpCompressionDynamic -source windowsfeatures #cinst TelnetClient -source windowsFeatures #### Schedule updates to applications with chocolatey schtasks.exe /create /s "localhost" /ru "System" /tn "Update Chocolatey packages" /tr "%ChocolateyInstall%\bin\cup all" /sc DAILY /st 06:00 /F Write-BoxstarterMessage "Set update schedule for apps is finished" if (Test-PendingReboot) { Invoke-Reboot } Write-BoxstarterMessage "Updating HOSTS File" #Import HOST File Remove-Item -Path "$env:windir\system32\drivers\etc\hosts" Move-Item -Path "E:\Documents\Boxstarter\hosts" -Destination "$env:windir\system32\drivers\etc\hosts" Write-BoxstarterMessage "Setting Explorer options and Taskbar up the way you like, and Disabling a few features that will be unused or needed" # Apply user settings # Disable defrag (no need when having an SSD) Get-ScheduledTask -TaskName *defrag* | Disable-ScheduledTask Install-ChocolateyFileAssociation ".txt" "$env:programfiles\Sublime Text 3\sublime_text.exe" Move-LibraryDirectory "Downloads" "E:\Downloads" Move-LibraryDirectory "Personal" "$env:UserProfile\OneDrive\documents" #move "Documents" folder to OneDrive Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar Set-TaskbarOptions -Size Small -Lock Disable-InternetExplorerESC Disable-BingSearch Disable-GameBarTips Disable-PSRemoting Install-ChocolateyPinnedTaskBarItem "$env:windir\syswow64\WindowsPowerShell\v1.0\powershell.exe" Install-ChocolateyPinnedTaskBarItem "$env:programfiles\Mozilla Firefox\firefox.exe" Write-BoxstarterMessage "Enabling UAC, Windows Update, and Cleaning up Boxstarter junk" ################ Update-ExecutionPolicy Unrestricted Enable-MicrosoftUpdate Install-WindowsUpdate -acceptEula -GetUpdatesFromMS #Turn UAC Back on Enable-UAC # Clean up Boxstarter autologin # Note: keep this last in the script $winLogonKey="HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" Remove-ItemProperty -Path $winLogonKey -Name "DefaultUserName" -ErrorAction SilentlyContinue Remove-ItemProperty -Path $winLogonKey -Name "DefaultDomainName" -ErrorAction SilentlyContinue Remove-ItemProperty -Path $winLogonKey -Name "DefaultPassword" -ErrorAction SilentlyContinue Remove-ItemProperty -Path $winLogonKey -Name "AutoAdminLogon" -ErrorAction SilentlyContinue } catch { Write-ChocolateyFailure 'HBSinstall' $($_.Exception.Message) throw }