psexec failing with return code 122 when used from Windows service
- by Jeremy McGee
I've written a WCF service as a wrapper around a C# utility we've written that uses the SysInternals psexec utility to run jobs on a remote system. psexec is invoked from C# with command-line parameters that specify the domain, user and password to use.
All works fine when I invoke the C# utility from PowerShell locally.
However, when I run the…