Skip to content

Instantly share code, notes, and snippets.

@bunchc
Last active April 10, 2017 17:11
Show Gist options
  • Save bunchc/1d97b496aa1d6efe146f799b2fb34547 to your computer and use it in GitHub Desktop.
Save bunchc/1d97b496aa1d6efe146f799b2fb34547 to your computer and use it in GitHub Desktop.
BoxStarter to bootstrap a simple Windows DC
$newDomainName="orangutan.local"
$newDomainNetBios="orangutan"
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
# Install some useful packages
cinst git
cinst git-credential-winstore
cinst console-devel
cinst sublimetext2
cinst poshgit
cinst dotpeek
cinst putty
cinst winscp
# Enable AD
Install-WindowsFeature 'AD-Domain-Services' -IncludeAllSubFeature -IncludeManagementTools
# Installing ADDS Forest
Install-ADDSForest -DomainName $newDomainName -DomainNetbiosName $newDomainNetBios -SafeModeAdministratorPassword (ConvertTo-SecureString "P@ssword1" -AsPlainText -Force) -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment