Tom Talks Microsoft Teams and Microsoft 365 news and opinions

Setup a 2008 R2 Domain Controller with PowerShell Install-TAFirst2008R2DomainController

 

I’m a bit behind on publishing various PowerShell scripts I use. This is the script I use to quickly setup a lab 2008 R2 domain controller. It adds the appropriate Windows Features, then based on parameter input builds a dcpromo.exe unattended input file.

Download the script here: https://github.com/tomarbuthnot/Install-TAFirst2008R2DomainController

Use at your own risk. Feedback Welcome

It takes the following parameters

Domain name in the form domain.int
[string[]]$Domain,

        NetBios Domain name e.g. domain
[string[]]$NetBiosDomainName

First AD Site Name
[string[]]$ADSite = ‘lab-site1’,

This entry specifies the domain functional level.
[string[]]$Domainlevel = ‘4’,

ForestLevel
[string[]]$ForestLevel = ‘4’,

Directory Services Safe Mode Password
[string[]]$DSSafeModePassword = ‘Pa$$w0rd’,

Typical use would be:

Install-TAFirst2008R2DomainController –domain lab3.com –netbiosdomainname lab3

image

image

image

About the author

Tom Arbuthnot

A Microsoft MVP and Microsoft Certified Master, Tom Arbuthnot is Founder and Principal at Empowering.Cloud as well as a Solutions Director at Pure IP.

Tom stays up to date with industry developments and shares news and his opinions on his Tomtalks.blog, UC Today Microsoft Teams Podcast and email list. He is a regular speaker at events around the world.

3 comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Tom Talks Microsoft Teams and Microsoft 365 news and opinions