【发布时间】:2014-07-13 21:41:35
【问题描述】:
我正在尝试连接以远程交换并从 Powershell 运行查询。
这是我在 Exchange 服务器上的配置文件:
Register-PSSessionConfiguration -Name "Exchange" -StartupScript "C:\ProgramFiles\Microsoft\Exchange Server\V14\Bin\RemoteExchange.ps1"
这是我从本地计算机连接的方式:
$s = New-PSSession -ComputerName cmsexch -ConfigurationName "Exchange" -Authentication Kerberos -credential $cred
这是我收到的错误消息:
New-PSSession:运行启动脚本引发错误:找不到路径“HKLM:\Software\microsoft\ExchangeServer\v14\CentralAdmin”,因为它确实存在 不存在..
注意:
- 我的本地 Powershell 在 Windows 2008 SP2 32 位上运行
- 我的远程 Exchange 在 Windows 2008 R2 SP1 64 位上运行
问题:
- 如何解决此问题?
- 这是因为注册表重定向器在 Windows 64 位?
非常感谢
【问题讨论】:
标签: windows powershell registry powershell-remoting