1:Get-Service winrm | fl (To ensure this service is running as below)
we can user group policy to batch enable this service
2:Allow the service through Windows Firewall
3:Allow remote server management through WinRM
4:now we can Invoke command from remote server as below
Reference article as below
one of the most important things is to read about_concept.
1: update-help
2: help about_concept
Have a nice day!
转载于:https://blog.51cto.com/10500561/1741300