Jump to content

aschnabel

Members
  • Posts

    5
  • Joined

  • Last visited

aschnabel's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. From the looks of it, the users cannot copy anything to the C:\ directory which is why the script doesn't work. They can copy it to their profile path. So, can I copy it to the temp directory in their profile? What path would I use? $val = FileCopy ("P:\installs\ebrary\ebrary_xp.exe", "'c:\documents and settings\' & @UserName & 'local setting\temp'", 1) ???
  2. Dim $UserName, $DomainName, $Password $UserName = "administrator" $DomainName = "**********" $Password = "********" RunAsSet ( $UserName, $DomainName, $Password ) $val = FileCopy ("P:\installs\ebrary\ebrary_xp.exe", "C:\", 1) $val = RunWait("C:\ebrary_xp.exe", "C:\", @SW_MAXIMIZE) The P drive is located on one of the servers in the domain. All users can read and copy from it, but cannot write to it. The administrator is an admin account on the domain. Sorry for the tone of my last post. It was the end of a longm annoying day! Thanks in advance.
  3. Both the file being copied and the script are in the same directory and the drive that is being used is the same for everyone. not working as well as I had thought. Tried it on a user computer, with user credentials and the file isn't even copying now. I'm sure this has something to do with permissions but I thought the RunAsSet took care of that. The users are plain users on the domain, no special permissions to the computers. With a plain-joe users, where can I save this file to and what priveledges should I run the script under so that it copies and runs??
  4. I added a line to copy the file which works fine $val = FileCopy ("P:\installs\ebrary\ebrary_xp.exe", "C:\", 1) but still get the same message when using the following: $val = RunWait("ebrary_xp.exe", "c:\", @SW_MAXIMIZE) Thanks!
  5. I have a program that I need to install on about 500 machines. It is a small self extracting file that loads a .dll into the system32 directory and registers it. The program itself works, under the adminstrator account. My users however, cannot run the program, register the .dll and do what they need to do. I have a folder P:\installs\ebrary\ that has the files ebrary_xp.exe and ebrary.exe. The ebrary.exe files it the script that I created with AutoIt and the ebrary_xp.exe is the self extracting file that loads and registers the dll. I am using the RunAsSet($userName, $DomainName, $Password) command with those variables defined above. The only other line in the script is $val = RunWait("ebrary_xp.exe", "p:\installs\ebrary\", @SW_MAXIMIZE) I keep receiving "Error: Unable to execute external program. The system cannot find the path specified. I just started messing with this today and any help would be appreciated. Thank you.
×
×
  • Create New...