jfuller Posted October 24, 2013 Share Posted October 24, 2013 Hello Guys, I have created a script to run a .exe file, The script complies and when ran on the Target pc, Only message I get is from Windows 7 asking if the program installed correctly. However the .exe is never called. This script works on windows xp computers, just not for windows 7. ; Fill in the username and password appropriate for your system. Local $sUserName = "na" Local $sPassword = "na" ; Application name Local $Application = "C:UsersPublicDocumentsstart.exe" ; Create command line and call RunAs Local $Command = $Application Local $pid = RunAsWait($sUserName, @ComputerName, $sPassword, 0, $Command) Anyone have any ideas? I am sorta new to Scripting and not sure why this will not work. Link to comment Share on other sites More sharing options...
gruntydatsun Posted October 24, 2013 Share Posted October 24, 2013 is the secondary login service running on the target machine? Link to comment Share on other sites More sharing options...
jfuller Posted October 24, 2013 Author Share Posted October 24, 2013 Yes the service is started Link to comment Share on other sites More sharing options...
gruntydatsun Posted October 25, 2013 Share Posted October 25, 2013 does start.exe touch any files that do not have fully qualified file paths like (run thisprog.exe) assuming the same path as the executable start.exe? because you don't have a working path in your run statement it'll default to c:windowssystem32. Hope this helps. What does start.exe actually do? Link to comment Share on other sites More sharing options...
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