How to run “winrm quickconfig” on all LAN computers remotely

powershellpowershell-2.0

I want to start doing my remote LAN work using powershell, but it seems I need to run winrm quickconfig on all LAN computers before I can remotely connect to them.

How can I run that command on all computers without having to manually go to each computer to run it?

Best Answer

You should look into using PSTools (specifically, PSExec) to run it. I believe you can specify a text file with computer names in it for PSExec to run through, and you can use PSexec to do a WinRM quickconfig.

Related Question