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