Windows Server 2012 R2 active directory lab feat. powershell

This post is demonstrating the required powershell commands to install and configure Windows Server 2012 R2 (including “core”) with active directory domain services.
It is more of a reference to quickly install a domain server in your lab and furthermore the first of a few loosely coupled posts to install and test a nfs4 environment with EMC Isilon.

The first thing we have to do is to get a copy of Windows Server 2012 R2 from the Microsoft Evaluation Center and install it in your lab. You can either install the full version or just “core”, which does not offer a full GUI.

Windows Server 2012 core with its powershell support gets closer to the linux philosophy, to only install the services you really need. You now even have the capability to install or uninstall the GUI later. Isn’t that nice? But reboots are still required. 😉

Personally I would start using “core” more often as you don’t have to install all the internet explorer patches…

After the successfully installation lets fire up a powershell and do the basic configuration:

At this point we should have a proper named host with a functional network environment. Next we install and configure our active directory domain services:

With only 8 powershell commands (and a few reboots…) you have configured your Windows Server 2012 R2 lab server!

If you like powershell or installed the “core” version and don’t want to configure a second host with the remote server administration tools here are some useful powershell commands:

And here you can find the full powershell 4.0 documentation for reference.

Leave a comment

Your email address will not be published. Required fields are marked *

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