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

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.

Comments (3)

  1. Good tip. Will be very useful. Something new didn’t know that % is an alias for for-eachobject!

  2. OzThe2 says:

    Excellent tip – thanks

Skip to main content