Jump to content
Sign in to follow this  
Joe-Schmo

Running compiles scripts from server share

Recommended Posts

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

Share this post


Link to post
Share on other sites

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 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.
  :)

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...