Solved

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

Posted on 2014-10-22
7
222 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 28

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 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
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 28

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 28

Expert Comment

by:Dan McFadden
ID: 40396768
0
 
LVL 28

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

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
A hard and fast method for reducing Active Directory Administrators members.
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…

710 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