2011-03-21 81 views
2

嗨,無法通過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功能已啓用。

在此先感謝...

回答

0

此代碼是否工作?對於「進口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 
0

鮑刻申,你將不得不改變本地執行政策與:

Set-ExecutionPolicy remotesigned