hubble Posted March 27, 2006 Share Posted March 27, 2006 Hello, I want execute Internet explorer with another user ( simple user ) with "RunAsSet" Command. But, When I execute, I have error :"Unable to execute thje external program" Why ?? My script : RunAsSet ("test1","duhamel-b","password") RunWait("C:\Program Files\Internet Explorer\IEXPLORE.EXE") RunAsSet() Have u got Ideas ? Sorry for my english, I hope u understand me :"> Link to comment Share on other sites More sharing options...
hubble Posted March 27, 2006 Author Share Posted March 27, 2006 But when my user is in admin group, that works very well !! Please help me Link to comment Share on other sites More sharing options...
nfwu Posted March 27, 2006 Share Posted March 27, 2006 RunAsSet -------------------------------------------------------------------------------- Initialise a set of user credentials to use during Run and RunWait operations. 2000/XP or later ONLY. RunAsSet ( ["user", "domain", "password" [, options]] ) Parameters username [optional] The user name to use. domain [optional] The domain name to use. password [optional] The password to use. options [optional] 0 = do not load the user profile, 1 = (default) load the user profile, 2 = use for net credentials only Return Value Returns 0 if the operating system does not support this function. Otherwise returns 1--regardless of success. (If the login information was invalid, subsequent Run/RunWait commands will fail....) Remarks This function allows subsequent Run and RunWait functions to run as a different user (e.g. Administrator). The function only works on the 2000/XP (or later) platforms. NT4 users should install and use the SU command from the NT Resource Kit. The "Secondary Logon service" or "RunAs service" must not be disabled if you want this function to work. To unset the RunAs details, use the function with no parameters: RunAsSet(). Related Run, RunErrorsFatal (Option), RunWait Bolded the important parts. But when my user is in admin group, that works very well !! Please Define User: The one running the script, or the one whose credentials are in the RunAsSet parameters? #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
hubble Posted March 27, 2006 Author Share Posted March 27, 2006 ok !! It's ok now !! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now