Modify Properties of an Organizational Unit in PowerShell
Problem
You want to modify properties of a specific OU.
Solution
To modify the properties of an OU, use the [adsi] type shortcut to bind to the OU in Active Directory, and then call the Put() method. Finally, call the SetInfo() method to apply the changes.
$organizationalUnit = [adsi] "LDAP://localhost:389/ou=West,ou=Sales,dc=Fabrikam,dc=COM"
$organizationalUnit.Put("Description", "Sales West Organization") $organizationalUnit.SetInfo()
Discussion
- Read more about Modify Properties of an Organizational Unit in PowerShell
- Log in or register to post comments