Added: 8/3/17

Updated: 8/3/17

Hey guys,

So in the past you would always use “netdom query fsmo” to look up FSMO Operations Master Placements and it worked great.

Ever want to do the same in Powershell? — well I did and I kind of like it. So I spent a few minutes going thru the help commands until I figured it out, perhaps this will be helpful for some. 🙂

Just like the traditional way:

Get-ADDomain | Select-Object InfrastructureMaster, RIDMaster, PDCEmulator

Get-ADForest | Select-Object DomainNamingMaster, SchemaMaster

 

Make sure to select each line alone to get the desired result. 🙂

Alternatively you can type this and get the result a little more detailed! 😀

 

GetADDomainController Filter * |
SelectObject Name, Domain, Forest, OperationMasterRoles |
WhereObject {$_.OperationMasterRoles} |
FormatTableAutoSize

 

Note: Make sure you save them in a .ps1 extension. 🙂

Below is a picture of the ideal placement of FSMO roles:

Note: When you want to open up the Schema MMC Panel you must run this command in command prompt:

regsvr32 schmmgmt.dll

Lastly, this was discussion in another blog posting, but just so it’s clear here is a link to the Microsoft Website on FSMO roles since it’s done so well:

https://support.microsoft.com/en-us/help/197132/active-directory-fsmo-roles-in-windows

 

I hope this has been helpful to you guys and it’s helpful for me. Wrote this up so that it can be referenced in the future, cause I’ll admit as I age I tend to forget things. That’s what this blog is all about, archiving knowledge. 😀