Adding and removing extensionattribute to AD object

后端 未结 7 1407
春和景丽
春和景丽 2020-12-09 18:02

I\'m using powershell to modify some AD extensionattribute.

This is my code to add an extensionattribute

Set-ADUser -Identity \"anyUser\" -Add @{exte         


        
7条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-09 18:42

    Extension attributes are added by Exchange. According to this Technet article something like this should work:

    Set-Mailbox -Identity "anyUser" -ExtensionCustomAttribute4 @{Remove="myString"}
    

提交回复
热议问题