无法通过Powershell连接到live @ edu
问题描述:
我正尝试使用powershell连接到live @ edu并使用以下命令。
命令焦距:
$ SessionNew =新的PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://pod51002psh.outlook.com/powershell
错误:
[pod51002psh.outlook.com]连接到具有以下故障的远程服务器错误消息:WinRM客户端不能 处理该请求。目标计算机返回了对请求的空响应。有关更多信息,请参阅 about_Remote_Troubleshooting帮助主题。 + CategoryInfo:OpenError:(System.Manageme .... RemoteRunspace:RemoteRunspace)[],PSRemotingTransportExc 主器件接收 + FullyQualifiedErrorId:PSSessionOpenFailed
任何人都可以建议我如何处理这种类型的错误做。
我正在使用以下系统环境。 Win 7,默认版本的powershell & IIS功能已启用。
在此先感谢...
答
此代码是否工作?对于“进口PSSession将”工作,虽然
$Uri = "https://pod51002psh.outlook.com/powershell/"
$Credentials = Get-Credential
$SessionNew = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri $Uri -Credential $Credentials -Authentication Basic –AllowRedirection
Import-PSSession $SessionNew
答
鲍刻申,你将不得不改变本地执行政策与:
Set-ExecutionPolicy remotesigned