Windows Server 2016 core 服务器远程管理配置

# **0、环境** Windows Server 2016 core服务器 IP:10.99.101.114 管理机:windows10 IP:10.99.101.102** ## ** 1、通过命令行远程管理** #### Windows Server 2016 core服务器运行: WinRM QuickConfig y WINRM Enum Winrm/Config/Listener ![image.png](https://s2.51cto.com/images/20210628/1624861687426721.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) 开启防火墙规则: netsh advfirewall firewall set rule group="Windows 远程管理" new enable=yes ![image.png](https://s2.51cto.com/images/20210628/1624865196637825.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) #### Winsows10管理机: 管理员运行 powershell get-item WSMan:\localhost\Client\TrustedHosts Set-Item WSMan:\localhost\Client\TrustedHosts -Value ‘*‘ ![image.png](https://s2.51cto.com/images/20210628/1624865816943143.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) #### 远程运行命令 hostname winrs -r:10.99.101.114 -u:administrator -p:password@1 hostname ![image.png](https://s2.51cto.com/images/20210628/1624866128459995.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) ## 2、通过远程桌面管理 #### Windows Server 2016 core服务器运行 cd c:\windows\system32 cscript SCregEdit.wsf /Ar 0 netsh firewall add portoepning TCP 3389 Remote-Desktop ![image.png](https://s2.51cto.com/images/20210628/1624862919725677.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) netstat -ano | find /i "3389" ![image.png](https://s2.51cto.com/images/20210628/1624863072746337.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) 远程桌面链接即可。 ## 3、可以使用服务管理器进行管理 ![image.png](https://s2.51cto.com/images/20210628/1624866917472634.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)

Windows Server 2016 core 服务器远程管理配置

上一篇:linux下su切换用户出现This account is currently not available


下一篇:关于Ubuntu中passwd、shadow、group等文件