Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-10-22
7
Medium Priority
?
229 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 29

Accepted Solution

by:
Dan McFadden earned 2000 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 8

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
 The Evil-ution of Network Security Threats

What are the hacks that forever changed the security industry? To answer that question, we created an exciting new eBook that takes you on a trip through hacking history. It explores the top hacks from the 80s to 2010s, why they mattered, and how the security industry responded.

 
LVL 29

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 29

Expert Comment

by:Dan McFadden
ID: 40396768
0
 
LVL 29

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 8

Author Closing Comment

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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

The article covers five tools all IT professionals should know about, as they up productivity by a great deal!
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

824 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