PowerShell Remote Access – Execute Program on Remote Computer

powershellremote-accessscriptingwindows

How can I execute a program on a remote machine using powershell?

Best Answer

The cool new way to do this is with WinRM. I've seen this demo'd on Windows Server 2008 R2, although there is a download with powershell v2 & WinRM for other windows operating systems.

The not so cool (or new) way to do this is to use psexec, which isn't powershell, but I'm sure there's some way to invoke it via powershell-esque syntax.