top of page

PowerShell - Find FSMO holders in Domain DC's

  • Writer: Jon Boyette
    Jon Boyette
  • Jan 10, 2022
  • 1 min read

Save the code as a .ps1, or copy and paste, enter your Domain.com in the code and outputs to c:\temp\fsmolist.txt

$logFile = "c:\temp\FSMOList.txt"

Get-ADDomain -Server Domain.com | Select InfrastructureMaster,RIDMaster,PDCEmulator | Format-Table -AutoSize | Out-File $logFile -Append


"Domain Forest" | Out-File $logFile -Append

Get-ADForest | Select DomainNamingMaster,SchemaMaster | Out-File $logFile -Append



 
 
 

Recent Posts

See All
PowerShell - List All Domain SPNs

Save as same List_ALL_SPNs.ps1 or similar, this LDap calls the Domain for all Service Principal names and accounts related #Build LDAP...

 
 
 
PowerShell - Start-Monitoring

This is a great script used to Monitor and Email if a server is up or down, once ran, and smtp and from address is set, then run:...

 
 
 

Comments


Post: Blog2 Post
  • Facebook
  • Twitter
  • LinkedIn

©2022 by Boyette Technical Services. Proudly created with Wix.com

bottom of page