powershellpsexecsysinternals

PSexec copyright output


Does anyone know, how to disable "copyright header" from appearing when running PSExec? Everutime I run "./psexec ..." command I see this message:

PsExec v2.11 - Execute processes remotely
Copyright (C) 2001-2014 Mark Russinovich
Sysinternals - www.sysinternals.com

It's really annoying and it bloats up output of my script.

Thanks
Matthew


Solution

  • There does not appear to be a way to disable it from occurring, but as a workaround you could redirect STDERR which will suppress the output,

    psexec \\remotemachine command 2>nul