Last active
August 29, 2015 14:14
-
-
Save dnolf/b750ce81f528a31f2ccb to your computer and use it in GitHub Desktop.
Datacenter Web Server Boxstarter
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
# Allow reboots | |
$Boxstarter.RebootOk=$true | |
$Boxstarter.NoPassword=$false | |
$Boxstarter.AutoLogin=$true | |
# Basic setup | |
Update-ExecutionPolicy Unrestricted | |
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
Enable-RemoteDesktop | |
Disable-InternetExplorerESC | |
Disable-UAC | |
Set-TaskbarSmall | |
if (Test-PendingReboot) { Invoke-Reboot } | |
cinst dotnet3.5 | |
if (Test-PendingReboot) { Invoke-Reboot } | |
cinst dotnet4.5 | |
if (Test-PendingReboot) { Invoke-Reboot } | |
cinst dotnet4.5.1 | |
if (Test-PendingReboot) { Invoke-Reboot } | |
# Update Windows and reboot if necessary | |
Install-WindowsUpdate -AcceptEula | |
if (Test-PendingReboot) { Invoke-Reboot } | |
cinst IIS-WebServerRole -source windowsfeatures | |
cinst IIS-HttpCompressionDynamic -source windowsfeatures | |
cinst IIS-ManagementScriptingTools -source windowsfeatures | |
cinst IIS-WindowsAuthentication -source windowsfeatures | |
cinst IIS-ASPNET -source windowsfeatures | |
cinst IIS-ASPNET45 -source windowsfeatures | |
cinst IIS-ASP -source windowsfeatures | |
cinst IIS-WebSockets -source windowsfeatures | |
cinst IIS-HttpTracing -source windowsfeatures | |
cinst googlechrome | |
cinst 7zip | |
cinst adobereader | |
cinst notepadplusplus | |
cinst webpicmd | |
cinst UrlRewrite2 -source webpi | |
cinst debugdiagnostic | |
if (Test-PendingReboot) { Invoke-Reboot } | |
Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles86)\Google\Chrome\Application\chrome.exe" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment