Joe-Schmo Posted April 19, 2005 Posted April 19, 2005 OK.. Here is the issue I am having.... The attached script works fine if I run it from my local computer or any other local computer. The issue is I want to run it from the server via a login script. When I run it get the standard error message: Unable to execute the external program. The directory name is invalid. I'm guessing that the executable is attempting to run the psgetsid.exe from the @Tempdir on the file server and not the local machine in which the file is being launched from. Is anyone aware of a fix for this?? Much appreciated. Thanks! PS. The purpose of the script is to add registry entries for the current logged in user but executing them with an id with domain admin rights.New_AutoIt_v3_Script.au3
Developers Jos Posted April 19, 2005 Developers Posted April 19, 2005 (edited) OK.. Here is the issue I am having....The attached script works fine if I run it from my local computer or any other local computer. The issue is I want to run it from the server via a login script.When I run it get the standard error message: Unable to execute the external program. The directory name is invalid.I'm guessing that the executable is attempting to run the psgetsid.exe from the @Tempdir on the file server and not the local machine in which the file is being launched from. Is anyone aware of a fix for this??Much appreciated. Thanks!PS. The purpose of the script is to add registry entries for the current logged in user but executing them with an id with domain admin rights.<{POST_SNAPBACK}>Seen this before... the RunAsSet() will cause the original Drive to be unavailable for the run() command. try changing the workdir on the run() to the tempdir:RunWait(@ComSpec & " /c " & @Tempdir & "\psgetsid.exe" & " canada\" & @UserName & "| clip", @Tempdir , @SW_HIDE) Edited April 19, 2005 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Joe-Schmo Posted April 20, 2005 Author Posted April 20, 2005 Thanks Jdeb! That worked like a charm!!!
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