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

Use PowerShell Invoke-Command for Remoting_Powershell


we can user group policy to batch enable this service

Use PowerShell Invoke-Command for Remoting_Powershell_02


2:Allow the service through Windows Firewall

Use PowerShell Invoke-Command for Remoting_Powershell_03


3:Allow remote server management through WinRM

Use PowerShell Invoke-Command for Remoting_Powershell_04Use PowerShell Invoke-Command for Remoting_Powershell_05


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

Use PowerShell Invoke-Command for Remoting_Powershell_06


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

Use PowerShell Invoke-Command for Remoting_Powershell_07

Have a nice day!