# 获取服务信息 PS C:UsersAdministrator> Get-Service win* Status Name DisplayName ------ ---- ----------- Stopped WinHttpAutoProx... WinHTTP Web Proxy Auto-Discovery Se... Running Winmgmt Windows Management Instrumentation Running WinRM Windows Remote Management (WS-Manag...
# 停止服务 PS C:UsersAdministrator> Stop-Service WinRM PS C:UsersAdministrator> Get-Service WinRM Status Name DisplayName ------ ---- ----------- Stopped WinRM Windows Remote Management (WS-Manag...
# 重启服务 PS C:UsersAdministrator> Restart-Service WinRM PS C:UsersAdministrator> Get-Service WinRM Status Name DisplayName ------ ---- ----------- Running WinRM Windows Remote Management (WS-Manag...