Jump to content

Launch Autoit Script on remote machine @desktopdir empty.


Recommended Posts

Goodmorning i have a problem with @desktopdir function. If i run it with psexec to remote machine it return me empty value but if i run on remote machine the funtion return me the correct value. 

this is my psexec command:

psexec.exe <remote pc> /accepteula -d -s -i 1 <Shared Folder>Start.exe
 
Start.exe script have:
 
 
SplashTextOn("", @DesktopDir, -1, -1, -1, -1, 4, "", 20)
sleep(5000)

 

There is a way to obtain Desktop dir from a remote run script using psexec? 

Thank you for help. 

 

Link to comment
Share on other sites

Because you are running the script with the system account (-s option), and the system account seems do not have a desktop directory.

 

if I remove -s option no longer see the windows of the script Autoit,  and not show the message with the @desktopdir value. 

But i must add -u and -p paramters and re-appears the messagge with correct value of @desktopdir, but i must execute a script on 120 pc and i don't want  insert user name and pass of all user in the psexec execution script   :(.

Edited by Quasarnova
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...