Jump to content
Sign in to follow this  
dufran3

RunAs command without asking for password

Recommended Posts

dufran3

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
Jos

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                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
dufran3

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
Jos

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                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
dufran3

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

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.