Sign in to follow this  
Followers 0
dufran3

RunAs command without asking for password

6 posts in this topic

#1 ·  Posted (edited)

I am trying to run this command

_RunDOS('runas /user:username@domain "C:\WINDOWS\IsUninst.exe -fC:\McKessonHBOC\Uninst.isu -a"')

I can manually go into command prompt and type the command in, of course using my actual username and domain. However it always asks for a password. Is there anyway to get around this? I am running this on several users computers automatically, and would like the command to run in the background without them having to type in the password. Since I don't want them to know it. Anyone know?

Edited by dufran3

Share this post


Link to post
Share on other sites



why not do:

RunAsSet(username,Domain,Password)
Run("C:\WINDOWS\IsUninst.exe -fC:\McKessonHBOC\Uninst.isu -a")

;)


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

why not do:

RunAsSet(username,Domain,Password)
Run("C:\WINDOWS\IsUninst.exe -fC:\McKessonHBOC\Uninst.isu -a")

;)

Run("c:\.......

or is it

RunAs("c:\......

Share this post


Link to post
Share on other sites

Run("c:\.......

or is it

RunAs("c:\......

I will pretend you didn't ask and opened the Helpfile yourself to check if i made a typo or not ...


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Your right...I didn't open the help file before asking that. However just by looking at it...I wasn't sure if the Run Command would run everything silently and with the parameters I want...that is why I asked, at first glance I also didn't see the command executed the runas...

Share this post


Link to post
Share on other sites

Got it to work, thx!

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  
Followers 0