PowerTip: Use PowerShell to See If WinRM Is Running on Remote Computer

Doctor Scripto

SummaryLearn how to easily use Windows PowerShell to check if WinRM is running on a remote computer.

Hey, Scripting Guy! Question How can I use Windows PowerShell to ensure that WinRM is running and configured on my three remote computers?

Hey, Scripting Guy! Answer Create an array of computer names, and pipe them to the Test-WsMan cmdlet, for example:

"s1","s2","dc1" | % { Test-WSMan $_ }

Note  % is an alias for the Foreach-Object cmdlet.


Discussion is closed.

Feedback usabilla icon