API Reference
Command
Move-ADXOrganizationalUnit
Moves an Active Directory organizational unit.
Examples
Example 1: Preview moving an OU into the managed branch
Move-ADXOrganizationalUnit -Identity 'OU=SQL-Production,OU=Servers,DC=contoso,DC=com' -TargetParentDistinguishedName 'OU=Managed,OU=Servers,DC=contoso,DC=com' -WhatIf
Example 2: Move and rename a branch-office workstation OU
Move-ADXOrganizationalUnit -Identity 'OU=Workstations-KRK,OU=Endpoints,DC=contoso,DC=com' -TargetParentDistinguishedName 'OU=Poland,OU=Branches,DC=contoso,DC=com' -NewName 'Workstations-Krakow'
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-ADXOrganizationalUnit -Identity <string> -TargetParentDistinguishedName <string> [-Domain <string>] [-NewName <string>] [<CommonParameters>]#Parameters
- Identity string
- Gets or sets OU identity (DN, ou, or name).
- TargetParentDistinguishedName string
- Gets or sets the destination parent OU distinguished name.
- Domain string
- Gets or sets the optional domain DNS name.
- NewName string
- Gets or sets optional new OU name.
Outputs
ADPlayground.DirectoryMutationResult