PowerShell - Find FSMO holders in Domain DC's
- 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
Comments