I'm writing a utility which lets you remotely run a test application on network PCs. I plan to use PsExec to remotely launch the application on each PC but I need to check
- The PC is reachable
- The PC is logged in to Windows
Now I assume PsExec will simply fail if either of these isn't the case but is that the best option or is there a nice way to explicitly check?