Jump to content
Sign in to follow this  
MikeDub

Yet another RunAs question

Recommended Posts

MikeDub

I've seen all sorts of RunAs posts within the forums; however, I cannot find one that resolves my issue.

Anyway... Have a small app that needs to be run on some computers. Problem is that it needs a particular domain user name, in order to run it.

Don't ask why the guy that created the thing made it to run with that ID..

Now, I should be able run the app (located on a net share) using an AutoIT script and RunAs...

Run("S:\Location\App.exe)
WinWaitActive("Run blahblah", "&Yes")
Send("!Y")

Using the above works, when I am logged in as that user...

If I log on as myself and run it, I get a 'you have to be using this app...as said ID'.

RunAs("theuser","ourdomain","pword",4,"S:\Location\App.exe")
WinWaitActive("Run blahblah", "&Yes")
Send("!Y")

Now, logged on as myself, the app simply doesn't even start (task manager shows the compiled exe as still running - task bar shows it as paused)

If I change the RunAs line to be a UNC path (\\NETSHARE\Location\App.exe) - The app seems to start it's loading and then the window just disappears and task manager no longer shows the compiled exe as running anymore.

Any ideas?

Thanks

Edited by MikeDub

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.