Command for enable all user in a OU, including sub OU`s, for Lync
get-csADuser -OU “OU=sales,DC=contoso,DC=com” | Enable-CsUser -RegistrarPool lync01.contoso.com -SipAddressType emailaddress
I’ve read about using -SearchBase if you want to target nested OUs.
Sadly they didn’t set the two OUs we need to target up in that way.
Is it possible to use an OR syntax with -ou ?
e.g. get-csADuser -OU “|(OU=sales,DC=contoso,DC=com)(OU=marketing,DC=contoso,DC=com)”
I have not tested, sorry.
Your email address will not be published. Required fields are marked *
Notify me of follow-up comments by email.
Notify me of new posts by email.
evolve theme by Theme4Press • Powered by WordPress • Hosted by Iserv