murrayju / CreateProcessAsUser

Creates a process in a different Windows session
MIT License
369 stars 114 forks source link

Issue passing arguments to Wscript #35

Closed AleksAdamovic closed 2 years ago

AleksAdamovic commented 2 years ago

Hi all,

I've had great success so far with this script but am currently having issues using it to call Wscript.exe. I have something that looks like the following,

In my mind this is meant to launch wscript with arg[1] as the input script however what happens is that Wscript is launched as if there were no input parameters. What am I missing here? Has anyone had success using wscript/cscript with this setup?

All responses are much appreciated

AleksAdamovic commented 2 years ago

Figured it out by looking at the stack over flow post that OP suggested for anyone who comes across this issue in the future I resolved it by changing my original command to,