autoitNOW 0 Posted July 6, 2004 I'm having a problem with 2 RunAsSet commands in the same script and would like some advice on how to keep 2 RunAsSet commands in the same script. RunAsSet("Admin", "domain 1", "xxx") Runwait ( 'A.exe') Runwait ( 'B.exe') ;switches domains RunAsSet("Admin", "domain 2", "xxx") Run ( 'C.exe') exit In my present script c.exe never runs, but A.exe and B.exe does and the domain switch is clearly successful. Any advice on alternate methods to go about this? Thanks in advance An ADVOCATE for AutoIT Share this post Link to post Share on other sites
SlimShady 1 Posted July 6, 2004 (edited) Use this: ; Reset user's permissions RunAsSet() RunAsSet("Admin", "domain 2", "xxx") Edited July 6, 2004 by SlimShady Share this post Link to post Share on other sites
autoitNOW 0 Posted July 6, 2004 (edited) Turned out my problem is with @comspec and netsh command. I have posted a topic about this. As always... Thanks. Edited July 6, 2004 by autoitNOW An ADVOCATE for AutoIT Share this post Link to post Share on other sites