PowerShell for Windows Admins

Nov 22 2018   7:19AM GMT

Moving FSMO roles in PowerShell v6.1.1

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Tags:
Active Directory
Powershell

With the Windows Server 2019 media now being available again it’s time to move my test lab over to the new version. I’d built a Windows Server 2019 VM and installed PowerShell v6.1.1. I discovered that in Server 2019 and the Windows 10 October 2018 update that the AD module worked in PowerShell v6.1.1. I decided to try moving FSMO roles in PowerShell v6.1.1 as I updated the domain and removed the old Server 2016 domain controller.

The usual schema update went smoothly – updated the schema version to 88 from 87. Installing AD domain services and DNS on the new DC worked. Promoting the Windows 2019 system to be a DC worked with no problems.

Time to move the FSMO roles. They would move automatically when the old DC was removed but its always better to control the action.

Import-Module ActiveDirectory

will load the AD module into PowerShell v6.1.1.

There are 5 FSMO roles – 2 at the forest level

PS>  Get-ADForest | Format-List Name, *master

Name               : Manticore.org
DomainNamingMaster : W16DC01.Manticore.org
SchemaMaster       : W16DC01.Manticore.org

 

And 3 at the domain level – I only have a single domain to worry about.

PS>  Get-ADDomain | Format-List *master, PDC*

InfrastructureMaster : W16DC01.Manticore.org
RIDMaster            : W16DC01.Manticore.org
PDCEmulator          : W16DC01.Manticore.org

The forest level FSMO roles moved:

 

PS>  Move-ADDirectoryServerOperationMasterRole -Identity W19DC01  -OperationMasterRole DomainNamingMaster -Confirm:$false

PS>  Move-ADDirectoryServerOperationMasterRole -Identity W19DC01  -OperationMasterRole SchemaMaster -Confirm:$false

PS>  Get-ADForest | Format-List Name, *master

Name               : Manticore.org
DomainNamingMaster : W19DC01.Manticore.org
SchemaMaster       : W19DC01.Manticore.org

 

For the domain level FSMO roles I decided to get ambitious

PS>  Move-ADDirectoryServerOperationMasterRole -Identity W19DC01  -OperationMasterRole RIDMaster, InfrastructureMaster, PDCEmulator -Confirm:$false

PS>  Get-ADDomain | Format-List *master, PDC*

InfrastructureMaster : W19DC01.Manticore.org
RIDMaster            : W19DC01.Manticore.org
PDCEmulator          : W19DC01.Manticore.org

 

Moving FSMO roles in PowerShell v6.1.1 was successful

 Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: