Last active
August 29, 2015 14:14
-
-
Save dnolf/816d60a76c163290d67a to your computer and use it in GitHub Desktop.
Datacenter SQL 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 } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment