Powershell Set ADUser:名称引用无效
尝试在下面运行Powershell命令时出错:Powershell Set ADUser:名称引用无效,powershell,Powershell,尝试在下面运行Powershell命令时出错: Set-ADUser -Identity suser -Add @{msExchDelegateListLink='CN=Customer Care,OU=Onlinetenent.onmicrosoft.com,OU=Microsoft Exchange Hosted Organizations,DC=NMPR19A04,DC=PROD,DC=OUTLOOK,DC=COM'} Set-ADUser : The name reference is
Set-ADUser -Identity suser -Add @{msExchDelegateListLink='CN=Customer Care,OU=Onlinetenent.onmicrosoft.com,OU=Microsoft Exchange Hosted Organizations,DC=NMPR19A04,DC=PROD,DC=OUTLOOK,DC=COM'}
Set-ADUser : The name reference is invalid
At line:3 char:77
+ ... rt.com'} | Set-ADUser -Add @{msExchDelegateListLink='CN=Customer Car ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (CN=user test...=proddom,DC=net:ADUser) [Set-ADUser], ADException
+ FullyQualifiedErrorId : ActiveDirectoryServer:8373,Microsoft.ActiveDirectory.Management.Commands.SetADUser
本文建议您引用的用户的DN不正确:
查看示例中的DN,假设您复制并粘贴了,您可能在
OU=onlinetent.onmicrosoft.com,
中拼错了“tenant”,是否可以添加所有代码/更多代码?