October 14th, 2014

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

Doctor Scripto
Scripter

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.

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.