Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/11.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 新建PSSession:创建>远程会话时不支持相对URI_Powershell_Exchange Server - Fatal编程技术网

Powershell 新建PSSession:创建>远程会话时不支持相对URI

Powershell 新建PSSession:创建>远程会话时不支持相对URI,powershell,exchange-server,Powershell,Exchange Server,我发现此脚本用于在Exchange Server上上载照片: : 第一个错误: 新建PSSession:在创建时不支持相对URI 远程会话。第110行字符:15 +$session=新建PSSession-ConfigurationName Microsoft.Exchange-ConnectionUri。。。 + +类别信息:InvalidArgument:MAIL-PERO.appl.campari.priv:Uri[新会话], 冒号 +FullyQualifiedErrorId:Creat

我发现此脚本用于在Exchange Server上上载照片: :

第一个错误:

新建PSSession:在创建时不支持相对URI 远程会话。第110行字符:15 +$session=新建PSSession-ConfigurationName Microsoft.Exchange-ConnectionUri。。。 + +类别信息:InvalidArgument:MAIL-PERO.appl.campari.priv:Uri[新会话], 冒号 +FullyQualifiedErrorId:CreateRemoteRunspaceFailed,Microsoft.PowerShell.Commands.NewPSSessionCommand

第二个错误:

术语“get mailbox”无法识别为cmdlet的名称


该脚本是为exchange2010编写的,因此请确保您拥有它,而不是更新的,也不是更低的。否则,您必须更新脚本。它被硬编码为使用2010库

另外,正如错误所说,不要使用相对URL

对于URL,请使用https://yourexchangeUri.com