Sign in to follow this  
Followers 0
Pierre40a

Runasset On A Workstation

5 posts in this topic

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 $explorer

if @ComputerName<>"Home" then

RunAsSet("admin","", "adminpass")

run("explorer.exe c:\","",@SW_MAXIMIZE)

else

run("explorer.exe c:\","",@SW_MAXIMIZE)

endif

On 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 answer

Pierre

Share this post


Link to post
Share on other sites



Please try any other program besides explorer.exe

Explorer.exe does not work with RunAs (including Microsoft's runas utility)

Thank you ! It confirms what I thought.

Too bad.

Pierre

Share this post


Link to post
Share on other sites

Please try any other program besides explorer.exe

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

Share this post


Link to post
Share on other sites

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.

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