hexagon logo

Script Demand - goal is open pdf with different user

Hello all,

I am trying to have a pdf open using a different user. I have managed to do so using a bat file containing a runas command executed with a an external commande but the thing is that I have a cmd popup that I would like to avoid. By creating a .vbs file that runs this bat file, I am able to open the pdf without the cmd popup but pcdmis seems to be unable to run this .vbs file. Is it possible thorugh basic scripting to open that bat file or the pdf directly using another user? Maybe start a task scheduled on demand?

Thanks in advance for your ideas!
Parents
  • Did you try External Command, no display, no wait


    Yes it does not work with vbs files for some reason. I was able to convert a powershell file to exe and now have better security and not a runas script laying around. The command screen popup is does not seem possible to avoid for the moment.
Reply
  • Did you try External Command, no display, no wait


    Yes it does not work with vbs files for some reason. I was able to convert a powershell file to exe and now have better security and not a runas script laying around. The command screen popup is does not seem possible to avoid for the moment.
Children
No Data