Moving a User
This topic explains how to use the Active Directory module for Windows PowerShell to move a user to a different organizational unit (OU).
Example
The following example demonstrates how to move the user SaraDavis to the OU Finance:
Get-ADUser SaraDavis | Move-ADObject -TargetPath 'OU=Finance,DC=Fabrikam,Dc=com'
Get-ADUser SaraDavis | Move-ADObject -TargetPath 'OU=Finance,DC=Fabrikam,Dc=com'
Additional information
In addition to the standard Lightweight Directory Access Protocol (LDAP) attributes, you can retrieve the following extended properties of the Get-ADUser cmdlet by using the -Properties parameter:
- City
- Country
- EmailAddress
- Fax
- LogonWorkstations
- MobilePhone
- Office
- OfficePhone
- Organization
- OtherName
- POBox
- SmartcardLogonRequired
- State
- Surname
No comments:
Post a Comment