sábado, março 19, 2016

Movendo as FSMO através do PowerShell

Algum tempo atrás escrevi um post demonstrado como mover as FSMO através do famoso ntdsutil.exe, efetuarei o mesmo procedimento, mas agora com o PowerShell, recomendo para qualquer administrador Microsoft aprender PowerShell.

Armazenando o resultado do comando get-addomaincontroller na variável $server
>$server = Get-ADDomainController -Identity "myserver.contoso.com"

Movendo as cinco FSMO para o servidor myserver.contoso.com
>Move-ADDirectoryServerOperationMasterRole -Identity $server -OperationMasterRole SchemaMaster,DomainNamingMaster,PDCEmulator,RIDMaster,InfrastructureMaster


Verificando as FSMO:
>Get-ADDomain | Select-Object InfrastructureMaster, RIDMaster, PDCEmulator

InfrastructureMaster                    RIDMaster                               PDCEmulator
--------------------                    ---------                                    -----------
myserver.contoso.com                myserver.contoso.com               myserver.contoso.com

> Get-ADForest | Select-Object DomainNamingMaster, SchemaMaster

DomainNamingMaster                                          SchemaMaster
------------------                                                 ------------
myserver.contoso.com                                         myserver.contoso.com

Nenhum comentário: