Waclaw Chrabaszcz
... there is no spoon ...

Active Directory – How to promote Server 2012 R2 to DC and even more using PowerShell magic

Sunday, January 19, 2014 3:04 PM

It will be quick post, I have limited access to the Internet.

Today we are going to promote Windows 2012 to Domain controller and move some unique roles to it. It can be handy in DR scenario, or when we are going to raise domain functional level. It is very easy task, so to make some fun I'm not going to touch a GUI.

Prepare AD forest for Server 2012 if it is needed. Of course as a Schema Admin, of course it is one way ticket, so think twice before you do anything.
Don't forget about backing up your AD. It is recommended to execute it on the Schema Master server

{your Server 2012 R2 cd installation media}\support\adprep\adprep /forestprep

If you are sure that you are sure type c and hit Enter

After that we can switch to our destination Server 2012 R2,

Add-WindowsFeature AD-Domain-Services
Import-Module ADDSDeployment
$pwd = convertto-securestring "P@ssW0rD!" -asplaintext –force
Install-ADDSDomainController –DomainName "testdomain.net" –SaveModeAdministratorPassword $pwd –Force

Optionally after the reboot

Move-ADDirectoryServerOperationMasterRole –Identity DC2012 -OperationMasterRole PDCEmulator,SchemaMaster,DomainNamingMaster,InfrastructureMaster,RIDmaster –Force –Confirm:$false

Where DC2012 is a hostname of the new domain controller


# Free amazon gift card code generator online

One day, I'm very upset about how to generate free amazon gift card codes but then i got a webpage which easily offering all the amazon gift card code generator totally free of cost. Getting these amazon free gift card you don't need to download any file or something. You can get these amazon gift codes within a minute from here. 3/26/2016 8:27 AM | amazon321

# re: Active Directory – How to promote Server 2012 R2 to DC and even more using PowerShell magic

I have learned all kinds of things from my many mistakes. The one thing I never learn is to stop making them. http://indiavisitonline.in/complete-himachal-tour-package 12/5/2016 11:48 AM | Gali Parker

Post a comment