设置高度混合的 Active Directory 网络以使用 PowerShell 远程管理

设置高度混合的 Active Directory 网络以使用 PowerShell 远程管理

概括:我希望能够监控我网络上的计算机,但不需要自动化。我们的规模太小,无法购买任何类似 MOM 的东西,但规模又太大,无法手动执行任何操作(两个位置约 100 台机器)。我一直遇到问题,想知道是否有一个组策略设置主列表,我可以将其分发到我的环境中以使远程 Powershell 正常工作。

环境:我们的 AD 网络相当复杂。最终用户有操作系统Windows 7, 和Windows 7 x64. 服务器包括操作系统操作系统操作系统操作系统, 和操作系统 Windows 2000 R2

细节:我正在尝试让它与远程 Powershell 一起工作,但遇到了如下错误:

Connecting to remote server failed with the following error message : The WinRM 
client cannot process the request. Default authentication may be used with an IP 
address under the following conditions: the transport is HTTPS or the 
destination is in the TrustedHosts list, and explicit credentials are provided. 
Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts 
list might not be authenticated. For more information on how to set TrustedHosts 
run the following command: winrm help config. For more information, see the 
about_Remote_Troubleshooting Help topic.

        + CategoryInfo          : OpenError: (:) [], PSRemotingTransportException
        + FullyQualifiedErrorId : PSSessionStateBroken

然后我去电脑(Win2k3 SP2 服务器)并运行winrm quickconfig根据谷歌的建议,它说:

Make these changes [y/n]? y

WinRM has been updated to receive requests.

WinRM service started.
WSManFault
Message = The client cannot connect to the destination specified in the 
request. Verify that the service on the destination is running and is accepting 
requests. Consult the logs and documentation for the WS-Management service 
running on the destination, most commonly IIS or WinRM. If the destination is 
the WinRM service, run the following command on the destination to analyze and 
configure the WinRM service: "winrm quickconfig".

Error number:  -2144108526 0x80338012
The client cannot connect to the destination specified in the request. 
Verify that the service on the destination is running and is accepting 
requests. Consult the logs and documentation for the WS-Management service 
running on the destination, most commonly IIS or WinRM. If the destination is 
the WinRM service, run the following command on the destination to analyze and 
configure the WinRM service: "winrm quickconfig".

是的。它告诉我要纠正我的winrm quickconfig运行失败winrm quickconfig。我不想一次一次地用谷歌搜索来修补这个项目。我相信那里有关于如何为 powershell 远程管理设置网络的分步教程。有人知道吗?书籍也可以。

提前致谢!我没想到我的问题会这么长。

编辑:到目前为止,这是最好的一个,但它并不全面:http://www.computerperformance.co.uk/powershell/powershell_remote.htm

答案1

我发现最全面的 PowerShell 远程管理指南是《Windows PowerShell 远程管理管理员指南》。它是免费的下载(38 页),但需要在 PowerShell.com 上进行网站注册。

相关内容