Assigning or Removing a Manager of an OU
This topic explains how to use the Active Directory module for Windows PowerShell to assign or remove a manager of an organizational unit (OU).
Example
The following example demonstrates how to assign or remove a manager of an OU:
Set-ADOrganizationalunit 'OU=ManagedGroups,DC=Fabrikam,DC=com' -ManagedBy 'CN=SaraDavis,OU=ManagedGroups,DC=Fabrikam,DC=com'
To remove a manager of an OU, set the value of the ManagedBy attribute to –ManagedBy $null.
Set-ADOrganizationalunit 'OU=ManagedGroups,DC=Fabrikam,DC=com' -ManagedBy 'CN=SaraDavis,OU=ManagedGroups,DC=Fabrikam,DC=com'
To remove a manager of an OU, set the value of the ManagedBy attribute to –ManagedBy $null.
Additional information
You can use the following parameters when you set many of the common values that are associated with the modification of an OU:
- Country
- City
- PostalCode
- State
- StreetAddress
- Description
- DisplayName
- ProtectedFromAccidentalDeletion
- ManagedBy
No comments:
Post a Comment