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
The solution retrieves the Sales West OU. It then sets the description to Sales West Organization, and then applies those changes to Active Directory.