Problem
You want to modify properties of a specific organizational unit.
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.
For businesses requiring dedicated infrastructure in Germany, our Germany Dedicated Server provides dedicated compute resources, flexible operating system options, and administrative control for running production applications and demanding workloads.