0
我試圖從我的PowerShell連接到Exchange 2007(都在同一臺計算機上)。從PowerShell 2.0連接到本地交換2007年
我錯過了什麼?
我的代碼:
Set-ExecutionPolicy RemoteSigned
$cred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri
https://localhost/powershell/ -Credential $cred -Authentication Basic –AllowRedirection
Import-PSSession $Session
的錯誤,我得到:
[localhost] Connecting to remote server failed with the following error message : The server certificate on the destination computer (localhost:443) has the following errors:
The SSL certificate is expired. For more information, see the about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportException
+ FullyQualifiedErrorId : PSSessionOpenFailed
Import-PSSession : Cannot validate argument on parameter 'Session'. The argument is null. Supply a non-null argument and try the command again.
At line:3 char:17
+ Import-PSSession <<<< $Session
+ CategoryInfo : InvalidData: (:) [Import-PSSession], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.ImportPSSessionCommand
即使「遠程處理」本地?? http://www.o365info.com/2012/07/using-remote-powershell-to-manage_8596.html – woolford
沒有。 Exchannge 2007 RTM附帶Powershell V1。沒有遠程處理能力。那些Exchange遠程管理會話根本不存在於Exchange 2007服務器上。支持在V2下運行Exchange cmdlet,並添加了SP3,以便與E2010共存。許多人試圖讓V2遠程服務與Exchange 2007一起工作,但是有太多不兼容的東西。據我所知,沒有人能夠完成這項工作。 – mjolinor