Summary: Learn how to easily use Windows PowerShell to check if WinRM is running on a remote computer.
How can I use Windows PowerShell to ensure that WinRM is running and configured on my three remote computers?
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.
0 comments