1:Get-Service  winrm | fl  (To ensure this service is running as below)

wKioL1a1XY7Qz0XYAABoUVC3EN8472.png


we can user group policy to batch enable this service

wKiom1a1XlySP9GJAAETFGRWM1s002.png


2:Allow the service through Windows Firewall

wKioL1a1XhbwTnAfAACGXUgPQFI243.png


3:Allow remote server management through WinRM

wKiom1a1YBnjquwzAADSbtidOZU923.pngwKioL1a1YHzg7FOLAADJVdzsPoI494.png


4:now we can Invoke command from remote server  as below

wKioL1a1YZvSYmnpAAAvKUPbHIM372.png


Reference article as below

http://www.public.madeinengland.co.nz/how-to-remotely-add-features-to-many-windows-2008-r2-servers-using-powershell/

https://blogs.technet.microsoft.com/heyscriptingguy/2011/06/13/use-powershell-invoke-command-for-remoting/


one of the most important things is to read about_concept.

1: update-help

2: help about_concept

wKiom1a1auCipb4ZAACH17tu7RA727.png

Have a nice day!