Solved

Powershell code to view the FSMO role and AD Sites across the Active Directory domain

Posted on 2014-10-22
7
220 Views
Last Modified: 2014-10-23
People,

Can anyone here please assist me with the PowerShell code that I can execute to get the AD Sites name and FSMO role for all of the Domain Controller/Global Catalog in my AD Domain ?

My AD Domain functionality is still Windows Server 2003 with some AD/DC is still running on WIndows Server 2003 physical box to be decommissioned.

Thanks,
0
Comment
  • 4
  • 2
7 Comments
 
LVL 27

Accepted Solution

by:
Dan McFadden earned 500 total points
ID: 40396740
Using NETDOM from command line:

netdom query /domain:YourDomainGoes.Here fsmo

Using Powershell (its 2 separate commands):

1. Get-ADForest YourDomainGoes.Here | ft SchemaMaster, DomainNamingMaster
2. Get-ADDomain YourDomainGoes.Here | ft PDCEmulator ,RIDMaster, InfrastructureMaster

Dan
0
 
LVL 19

Expert Comment

by:Kash
ID: 40396743
0
 
LVL 7

Author Comment

by:Senior IT System Engineer
ID: 40396755
ok, as for the NetDom, do I have to run that on the Domain Controllers or it can run on my WIndows 7 laptop ?
0
Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

 
LVL 27

Expert Comment

by:Dan McFadden
ID: 40396767
You can run it from your laptop in you have RSAT (AD remote administrator tools) installed.
0
 
LVL 27

Expert Comment

by:Dan McFadden
ID: 40396768
0
 
LVL 27

Expert Comment

by:Dan McFadden
ID: 40396777
RSAT is Remote Server Administrator Tools... made a mistake in the name in my above post.
0
 
LVL 7

Author Closing Comment

by:Senior IT System Engineer
ID: 40400661
Thanks !
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question