Skip to main content

WinRM

Windows 远程管理,可以用 Powershell 来远程发送指令,和 RDP 不属于同一类服务。也就是说,如果 RDP 崩了 或 其他意外的状况,但系统内核和网络驱动还在正常工作,那你就可以用这个方法来解决一部分的问题。

启用

# 快速配置(配置服务,打开端口)
winrm quickconfig

# 开启Remote
Enable-PSRemoting

实用命令

远程重启

Restart-Computer -ComputerName 100.64.0.198 -Credential (Get-Credential) -Force