Skip to content

Instantly share code, notes, and snippets.

@dnolf
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnolf/b750ce81f528a31f2ccb to your computer and use it in GitHub Desktop.
Save dnolf/b750ce81f528a31f2ccb to your computer and use it in GitHub Desktop.
Datacenter Web Server Boxstarter
# 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