Pierre40a Posted May 16, 2006 Share Posted May 16, 2006 Hello,Just trying Autoit V3 with fun ...I'd like, among other things, to execute explorer.exe on a workstation, without looging off.For instance, "User1" is logged on the PC and I want my app to browse the PC as an admin.With my sample code , it doesn't work (NB: Both PC Run XP Pro) :case $explorerif @ComputerName<>"Home" then RunAsSet("admin","", "adminpass") run("explorer.exe c:\","",@SW_MAXIMIZE) else run("explorer.exe c:\","",@SW_MAXIMIZE)endifOn my home PC (logged as admin) everything is ok, but when I clic the $explorer button on the workstation (logged as a normal user) , no explorer windows opens ... From the help file :The "Secondary Logon service" or "RunAs service" must not be disabled if you want this function to work. doesn't seem to be set (I installed PC Anywhere while loged as "User1" and I can use the "Run" command without any trouble).How could I fix this problem ?Thanks for any answerPierre Link to comment Share on other sites More sharing options...
CyberSlug Posted May 16, 2006 Share Posted May 16, 2006 Please try any other program besides explorer.exe Explorer.exe does not work with RunAs (including Microsoft's runas utility) Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Pierre40a Posted May 18, 2006 Author Share Posted May 18, 2006 Please try any other program besides explorer.exeExplorer.exe does not work with RunAs (including Microsoft's runas utility)Thank you ! It confirms what I thought.Too bad.Pierre Link to comment Share on other sites More sharing options...
Freeze128 Posted May 18, 2006 Share Posted May 18, 2006 Please try any other program besides explorer.exeExplorer.exe does not work with RunAs (including Microsoft's runas utility)I think it will if you set Explorer to launch folder windows in a separate process. You can find this option in Explorer under Tools -> Folder Options, View tab. Link to comment Share on other sites More sharing options...
thefunkie1 Posted May 18, 2006 Share Posted May 18, 2006 What I've done in the past is launch Internet Explorer (Iexplore.exe) using runas....then you can navigate the file system with admin privileges. 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