Created
December 6, 2014 17:15
-
-
Save RichHopkins/1a8ed3f113a36d3c94d0 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 | |
Update-ExecutionPolicy Unrestricted | |
Disable-InternetExplorerESC | |
Disable-UAC | |
Enable-RemoteDesktop | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles | |
#Install IIS and needed features | |
cinst IIS-WebServerRole -Source WindowsFeatures | |
cinst IIS-IIS6ManagementCompatibility -Source WindowsFeatures | |
cinst IIS-Metabase -Source WindowsFeatures | |
cinst IIS-BasicAuthentication -Source WindowsFeatures | |
cinst IIS-ISAPIExtensions -Source WindowsFeatures | |
cinst IIS-ISAPIFilter -Source WindowsFeatures | |
cinst IIS-NetFxExtensibility -Source WindowsFeatures | |
cinst IIS-NetFxExtensibility45 -Source WindowsFeatures #2012 only | |
cinst IIS-ASPNET -Source WindowsFeatures | |
cinst IIS-ASPNET45 -Source WindowsFeatures #2012 only | |
cinst DotNet4.5.2 | |
#Run Windows Update and reboot | |
Install-WindowsUpdate -AcceptEula | |
if (Test-PendingReboot) { Invoke-Reboot } | |
cinst chocolatey #we'll modify this package for local installs | |
cinst chocolatey.server #the server package we'll copy to IIS | |
cinst nuget.commandline #add nuget to the commandline path | |
cinst warmup #chocolatey nuspec templates | |
cinst git | |
cinst poshgit | |
cinst SublimeText2.app | |
Remove-Item C:\inetpub\wwwroot\* -Recurse -Force | |
Copy-Item C:\ProgramData\chocolatey\lib\chocolatey.server.0.1.1\tools\chocolatey.server\* C:\inetpub\wwwroot -Recurse -Force | |
& START http://localhost |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment