Jump to content

Recommended Posts

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
Posted

why not do:

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

;)

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

or is it

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

Posted

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...

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...