Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powershell Set ADUser:名称引用无效_Powershell - Fatal编程技术网

Powershell Set ADUser:名称引用无效

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

尝试在下面运行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 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”,是否可以添加所有代码/更多代码?