Windows Server 2016 core 服务器远程管理配置
**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](http://www.icode9.com/i/li/?n=2&i=images/20210628/1624861687426721.png?,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](http://www.icode9.com/i/li/?n=2&i=images/20210628/1624865196637825.png?,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](http://www.icode9.com/i/li/?n=2&i=images/20210628/1624865816943143.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
远程运行命令 hostname
![image.png](http://www.icode9.com/i/li/?n=2&i=images/20210628/1624866128459995.png?,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](http://www.icode9.com/i/li/?n=2&i=images/20210628/1624862919725677.png?,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](http://www.icode9.com/i/li/?n=2&i=images/20210628/1624863072746337.png?,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
3、可以使用服务管理器进行管理