Jump to content

Runasset On A Workstation


Recommended Posts

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

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

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