Building a Domain Controller is not that Difficult but what about building this with Powershell and use the 2016 Bits.
Well lets take a peek at the Technet site https://technet.microsoft.com/en-us/library/hh974720(v=wps.630).aspx nothing about 2016.
-DomainMode<DomainMode>
Specifies the domain functional level of the first domain in the creation of a new forest. Supported values for this parameter can be either a valid integer or a corresponding enumerated string value. For example, to set the domain mode level to Windows Server 2008 R2, you can specify either a value of 4 or Win2008R2. So
The following are the supported values:
— Windows Server 2003: 2 or Win2003
— Windows Server 2008: 3 or Win2008
— Windows Server 2008 R2: 4 or Win2008R2
— Windows Server 2012: 5 or Win2012
— Windows Server 2012 R2: 6 or Win2012R2
Well it makes sense that the Next line would be — Windows Server 2016: 7 or Win2016
Le me try that in Azure.
First I deploy the windows feature Active Directory
Install-windowsfeature AD-domain-services -IncludeAllSubFeature –IncludeManagementTools
The next step would be Deploy Active Directory and at the end you will be asked for a recovery password.
Install-ADDSForest `
-CreateDnsDelegation:$false `
-DatabasePath "C:\Windows\NTDS" `
-DomainMode "7" `
-DomainName "mvpdemo01.local" `
-DomainNetbiosName "mvpdemo01" `
-ForestMode "7" `
-InstallDns:$true `
-LogPath "C:\Windows\NTDS" `
-NoRebootOnCompletion:$false `
-SysvolPath "C:\Windows\SYSVOL" `
-Force:$true
I did a Force:$true So a reboot is following so no time for a screenshot and wait for things.!
But After the reboot you will have a DC
and Joining a DC Member : Add-WindowsFeature AD-Domain-Services
Install-windowsfeature AD-domain-services -IncludeAllSubFeature –IncludeManagementTools
Add-WindowsFeature AD-Domain-Services `
-CreateDnsDelegation:$false `
-DatabasePath "C:\Windows\NTDS" `
-DomainMode "7" `
-DomainName "mvpdemo01.local" `
-DomainNetbiosName "mvpdemo01" `
-ForestMode "7" `
-InstallDns:$true `
-LogPath "C:\Windows\NTDS" `
-NoGlobalCatalog:$false `
-NoRebootOnCompletion:$false `
-SysvolPath "C:\Windows\SYSVOL" `
-Force:$true
Joining a Member server
I created a noob account that is only allowed to join a server to the domain
Write-Host "Hostname / Node Names" -ForegroundColor yellow
$domain = "mvpdemo01.local"
$password = "Password01" | ConvertTo-SecureString -asPlainText -Force
$username = "$domain\noob"
$credential = New-Object System.Management.Automation.PSCredential($username,$password)
Add-Computer -DomainName $domain -Credential $credential
restart-computer -force
See how easy things can be.
Flickr Tags: Windows Server 2016,CloudOS
Follow Me on Twitter @ClusterMVP
Follow My blog https://robertsmit.wordpress.com
Linkedin Profile Http://nl.linkedin.com/in/robertsmit
Google Me : https://www.google.nl
Bing Me : http://tinyurl.com/j6ny39w