http://blogs.itpro.es/danielgracia/2013/12/11/descubrir-roles-fsmo-con-powershell/
Descubrir Roles FSMO con PowerShell