Odd issue with get-computerinfo via PSExec

If your company prefers you use psexec vs powershell remoting, I’d have their sanity checked. Now if you have no choice then may I recommend my Invoke-RemoteExpression function that is an enhanced version of one Lee Holmes wrote back in the day. It mimics Invoke-Command using psexec and will provide a well formed object back. This is much nicer to work with than the text that psexec will give you.

1 Like