Created
December 5, 2015 05:38
-
-
Save woakes070048/a26ad505998ae2087611 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
# Boxstarter options | |
$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 | |
#### .NET 3.5 #### | |
cinst dotnet3.5 -y # Not automatically installed. Includes .NET 2.0. Uses Windows Features to install. | |
if (Test-PendingReboot) { Invoke-Reboot } | |
#### WINDOWS SETTTINGS ##### | |
# Basic setup | |
Update-ExecutionPolicy Unrestricted | |
Set-ExplorerOptions -showFileExtensions | |
#Enable-RemoteDesktop | |
Disable-InternetExplorerESC | |
#Disable-UAC | |
#Set-TaskbarSmall | |
# disable defrag because I have an SSD | |
Get-ScheduledTask -TaskName *defrag* | Disable-ScheduledTask | |
################################# POWER SETTINGS ################################# | |
# Turn off hibernation | |
# powercfg /H OFF | |
# Change Power saving options (ac=plugged in dc=battery) | |
powercfg -change -monitor-timeout-ac 0 | |
powercfg -change -monitor-timeout-dc 15 | |
powercfg -change -standby-timeout-ac 0 | |
powercfg -change -standby-timeout-dc 30 | |
powercfg -change -disk-timeout-ac 0 | |
powercfg -change -disk-timeout-dc 30 | |
powercfg -change -hibernate-timeout-ac 0 | |
## When docked - Make sure that when I close the lid of my laptop it doesn't go to sleep | |
# retrieve the current power mode Guid | |
$guid = (Get-WmiObject -Class win32_powerplan -Namespace root\cimv2\power -Filter "isActive='true'").InstanceID.tostring() | |
$regex = [regex]"{(.*?)}$" | |
$guidVal = $regex.Match($guid).groups[1].value #$regex.Match($guid) | |
# Write-Host $guidVal | |
# Set close the lid power option to 'Do Nothing' for plugged in. | |
powercfg -SETACVALUEINDEX $guidVal 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0 | |
#To see what other options are available - run the following: | |
# powercfg -Q $guidVal | |
################################# SOFTWARE ####################################### | |
#Browsers | |
cinst googlechrome -y | |
cinst firefox -y | |
#Other dev tools | |
cinst fiddler4 -y | |
cinst brackets -y | |
cinst notepadplusplus -y | |
cinst nodejs.install -y | |
cinst sourcetree -y | |
choco install ruby -y | |
choco install ruby2.devkit -y | |
choco install python2 -y | |
choco install tortoisesvn -y | |
#Other essential tools | |
cinst winrar -y | |
cinst adobereader -y | |
cinst skype -y | |
cinst dropbox -y | |
cinst windirstat -y | |
cinst virtualbox -y | |
#cinst genymotion -y # use Xamarin player instead? | |
choco install jdk8 -y | |
#choco install maven -y # This package installs into C:/bin which is too annoying | |
choco install join.me -y | |
choco intall clover -y # windows explorer tabs | |
#Not on Choco | |
# * Cisco VPN | |
# * Egnyte desktop sync | |
# * Axure | |
#cinst Microsoft-Hyper-V-All -source windowsFeatures | |
cinst IIS-WebServerRole -source windowsfeatures | |
cinst IIS-HttpCompressionDynamic -source windowsfeatures | |
cinst IIS-ManagementScriptingTools -source windowsfeatures | |
cinst IIS-WindowsAuthentication -source windowsfeatures | |
Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles86)\Google\Chrome\Application\chrome.exe" | |
#Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe" | |
# Update Windows and reboot if necessary | |
Install-WindowsUpdate -AcceptEula -GetUpdatesFromMS | |
if (Test-PendingReboot) { Invoke-Reboot } | |
# http://jekyll-windows.juthilo.com/3-syntax-highlighting/ | |
# http://romuluscrisan.com/jekyll/2014/03/06/install-jekyll-using-chocolatey.html | |
#Install python pip | |
$storageDir = "C:\tools\python2\pip" | |
md -Force $storageDir | |
$webclient = New-Object System.Net.WebClient | |
$url = "https://bootstrap.pypa.io/get-pip.py" | |
$file = "$storageDir\get-pip.py" | |
$webclient.DownloadFile($url,$file) | |
# Add to path | |
$oldpath = (Get-ItemProperty -Path ‘Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment’ -Name PATH).path | |
$newpath = “$oldpath;C:\tools\python2\scripts” | |
Set-ItemProperty -Path ‘Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment’ -Name PATH –Value $newPath |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment