Added Psexec.exe parameter execution in BatchPatch

BatchPatch Forums Home Forums BatchPatch Support Forum Added Psexec.exe parameter execution in BatchPatch

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8703
    pkardono
    Participant

    Hi,

    I’m trying to run .bat file in remote interact with desktop. So the application which I run will pop up in the desktop instead of in the background.

    My question, is there a way to add psexec parameter such -i -d -s in batchpatch?

    Currently To work around in batchpatch I run psexec from Local Process/Command with parameter

    “psexec -i -d -s \$computer cmd /c “C:xx.bat”

    Thank you

    pkardono

    #9867
    doug
    Moderator

    In BatchPatch ‘remote process 1’ and ‘remote process 2’ support psexec switches. To have any chance at the -i interactive switch working you would also need to set the ‘remote execution context’ under ‘Tools > Settings > Remote Execution’ to ‘Elevated token’ instead of ‘SYSTEM’ for the ‘Remote process/command’ section.

    Syntax example:

    If I want to launch calc.exe on a target computer interactively… after I set the remote execution context to ‘Elevated token’… then in ‘Remote process/command 1’ I can use:

    -i calc.exe

    -Doug

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.