//
you're reading...
PowerShell, Windows Server 10, Windows Server Technical Preview

PowerShell: Creating a new Active Directory Forest in Windows Server Technical Preview

PowerShell is king! that’s what they say, and indeed it is. I have Windows Server Technical Preview which has been available to the public since October 2014 for download at this link http://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-technical-preview

Here’s the one liner script on how to create a new Active Directory Forest in PowerShell on Windows Server Technical Preview.

Install-ADDSForest -DomainName lab.demo -Confirm -DatabasePath C:\Windows\NTDS -DomainMode Win2012 -DomainNetbiosName LABDEMO -Force -ForestMode Win2012 -InstallDns -LogPath C:\Windows\NTDS -NoRebootOnCompletion -SysvolPath C:\Windows\SYSVOL

My domain will be LAB.DEMO 

In in the Windows Server Technical Preview, click on the Windows logo and in the Search box, just type “Power” and a couple of Windows PowerShell icons will appear, I have selected Windows PowerShell ISE, made a right-click on and click on “Run as administrator” from the menu.

PS-AD00

 

Next is to type in the command above…

PS-AD01

It will then ask for the SafeModeAdministrator twice.

PS-AD02

A progress bar will appear to show you the status of the installation.

PS-AD03

Once the installation completes, restart your server type in: shutdown /r /t 0

PS-AD04

After the restart notice that the login page is now my domain LABDEMO

PS-AD05

After the Server Manager launches, click on Tools, notice that even  Group Policy Management is installed.


PS-AD07

If you want to try this out, copy the command below:

Install-ADDSForest -DomainName domain.local -Confirm -DatabasePath C:\Windows\NTDS -DomainMode Win2012 -DomainNetbiosName DOMAINLOCAL -Force -ForestMode Win2012 -InstallDns -LogPath C:\Windows\NTDS -NoRebootOnCompletion -SysvolPath C:\Windows\SYSVOL

PS-ADForest-WS10PREV

 

Just change the following to your preferred Domain Name and Domain Netbios Name (highlighted above).

Discussion

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: