PsExec Throws Error Messages, but works without any problems

前端 未结 3 773
不思量自难忘°
不思量自难忘° 2020-12-01 22:05

So we are using PsExec a lot in our automations to install virtual machines, as we can\'t use ps remote sessions with our windows 2003 machines. Everything works great and t

3条回答
  •  Happy的楠姐
    2020-12-01 22:18

    This is because PowerShell sometimes reports a NativeCommandError when a process writes to STDERR. PsExec writes the infoline

    PsExec v1.98 - Execute processes remotely
    Copyright (C) 2001-2010 Mark Russinovich
    Sysinternals - www.sysinternals.com
    

    to STDERR which means it can cause this.

    For more information, see these questions / answers:

    • https://stackoverflow.com/a/1416933/478656
    • https://stackoverflow.com/a/11826589/478656
    • https://stackoverflow.com/a/10666208/478656

提交回复
热议问题