# **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

开启防火墙规则:
netsh advfirewall firewall set rule group="Windows 远程管理" new enable=yes

#### Winsows10管理机:
管理员运行 powershell
get-item WSMan:\localhost\Client\TrustedHosts
Set-Item WSMan:\localhost\Client\TrustedHosts -Value ‘*‘

#### 远程运行命令 hostname
winrs -r:10.99.101.114 -u:administrator -p:password@1 hostname

## 2、通过远程桌面管理
#### Windows Server 2016 core服务器运行
cd c:\windows\system32
cscript SCregEdit.wsf /Ar 0
netsh firewall add portoepning TCP 3389 Remote-Desktop

netstat -ano | find /i "3389"

远程桌面链接即可。
## 3、可以使用服务管理器进行管理
Windows Server 2016 core 服务器远程管理配置
原文:https://blog.51cto.com/yimiyinei/2951516