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.
krzydoug
21
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Get-Computerinfo ... Help | 2 | 287 | February 20, 2017 | |
| `Select Name -ExcludeProperty PSComputerName, RunspaceId` -- is not excluding | 11 | 349 | April 19, 2025 | |
| Creating a array of info for remote computers | 13 | 356 | September 1, 2016 | |
| Using Invoke-Command, display which machine responded | 8 | 986 | May 14, 2020 | |
| Get-Process does not return all properties from remote PC | 8 | 301 | May 19, 2015 |