Guest User

Untitled

a guest
Jan 21st, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #Have you ever wanted to verify which server in your Domain holds the FSMO roles?
  2.  
  3. #Wait no further and use this script to verify the FSMO , Schema and Domain Naming masters in your environment
  4.  
  5. Get-ADDomain | Select-Object InfrastructureMaster, RIDMaster, PDCEmulator
  6.  
  7. Get-ADForest | Select-Object DomainNamingMaster, SchemaMaster
  8.  
  9. Get-ADDomainController -Filter * |
  10.  
  11. Select-Object Name, Domain, Forest, OperationMasterRoles |
  12.  
  13. Where-Object {$_.OperationMasterRoles} |
  14.  
  15. Format-Table -AutoSize
  16.  
  17. #From here you can export the info or pipe it to automate or monitor things.
  18.  
  19. #hop you find it useful
Add Comment
Please, Sign In to add comment