我试图在Powershell中设置AD属性6来更新没有邮箱的用户,而不是交换联系人; 并且只是一个AD用户ObjectClass : user
我正在使用的命令是:
get-adobject -filter {mail -eq "[email protected]" } | set-adobject -replace @{CustomAttribute6="[email protected]" }
我得到的错误是
Set-ADObject : The specified directory service attribute or value does not exis t Parameter name: CustomAttribute6 At line:1 char:75 + get-adobject -filter {mail -eq "[email protected]" } | set-adobject << << -replace @{CustomAttribute6="[email protected]" } + CategoryInfo : InvalidArgument: (CN=k\, Dan...e,DC=asdf,DC= com:ADObject) [Set-ADObject], ArgumentException + FullyQualifiedErrorId : The specified directory service attribute or val ue does not exist Parameter name: CustomAttribute6,Microsoft.ActiveDirectory.Management.Comm ands.SetADObject
既然我已经尽可能简化了这一点,我不知道接下来要做什么。 任何援助表示赞赏。
我认为该属性的正确名称将是extensionAttribute6 ,请尝试?