如何在Windows Server上开启WinRM服务
要开启Windows Remote Management (WinRM)服务,请按照以下步骤操作:
-
打开'Windows PowerShell'或'命令提示符'窗口。在Windows 10中,你可以使用Win+X快捷键,然后选择'Windows PowerShell(管理员)'或'命令提示符(管理员)'。
-
输入以下命令并按Enter键:
winrm quickconfig
-
当提示'WinRM服务已经设置为自动启动'时,输入'Y'并按Enter键。
-
当提示'WinRM服务已经启动'时,输入'Y'并按Enter键。
-
输入以下命令并按Enter键,以便允许所有IP地址上的远程访问:
Set-Item -Path WSMan:\localhost\listener\*\IPAddress -Value '*'
- 输入以下命令并按Enter键,以便允许所有用户进行远程访问:
Set-Item -Path WSMan:\localhost\listener\*\Auth -Value '*'
现在,你已经成功开启了WinRM服务,并允许远程访问。你可以使用Windows PowerShell或其他远程管理工具来管理Windows服务器了。
原文地址: https://www.cveoy.top/t/topic/n9r5 著作权归作者所有。请勿转载和采集!