Quasarnova Posted May 9, 2014 Posted May 9, 2014 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.
jguinch Posted May 9, 2014 Posted May 9, 2014 Because you are running the script with the system account (-s option), and the system account seems do not have a desktop directory. Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
Quasarnova Posted May 9, 2014 Author Posted May 9, 2014 (edited) 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 May 9, 2014 by Quasarnova
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