TestimoX

API Reference

Command

Move-ADXFSMORole

Namespace ADPlayground.PowerShell
Outputs
ADPlayground.PowerShell.FsmoRoleMoveResult

Moves FSMO roles to a different domain controller.

Examples

Authored help example

Example 1: Preview moving RID and PDC roles to a new primary domain controller


Move-ADXFSMORole -Role RidRole, PdcRole -Target 'dc-02.contoso.com' -WhatIf
        

Example 2: Seize the infrastructure role during a recovery operation


Move-ADXFSMORole -Role InfrastructureRole -Target 'dc-dr-01.contoso.com' -Seize -Confirm:$false
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Move-ADXFSMORole -Role <SchemaRole|NamingRole|PdcRole|RidRole|InfrastructureRole> -Target <string> [-Mover <FsmoRoleMover>] [-Seize] [<CommonParameters>]
#

Parameters

Role ActiveDirectoryRole[] requiredposition: 0pipeline: falsevalues: 5
FSMO roles to move. Possible values: SchemaRole, NamingRole, PdcRole, RidRole, InfrastructureRole
Possible values: SchemaRole, NamingRole, PdcRole, RidRole, InfrastructureRole
Target string requiredposition: 1pipeline: falsealiases: ComputerName
Target domain controller.
Mover FsmoRoleMover optionalposition: namedpipeline: false
Custom FSMO mover used for testing.
Seize SwitchParameter optionalposition: namedpipeline: false
Force seizure of the role if transfer fails.

Outputs

ADPlayground.PowerShell.FsmoRoleMoveResult