Followers 0

# Need help with simple runas statement

## 3 posts in this topic

Can't get the following to work

RunWait("\\server\it$\Install\Autodesk\DWF Viewer 5.1.0.527\DwfViewerSetup.exe /q") RunAsSet() If I take out the RunAsSet I get the program to run properly. If I put in my user and pass I get the error Unable to execute the external program The directory name is invalid I have tried both local admin accounts and domain admins. I have tried the Run command instead I have tried "C:\DwfViewerSetup" instead nothing works. I just want to make a simple installation to run via a login script. #### Share this post ##### Link to post ##### Share on other sites Can't get the following to work nothing works. <{POST_SNAPBACK}> Is the script running from a UNC or mapped drive ? Try adding the workdir parameter to RunWait: RunAsSet("admin", "domain", "pass") RunWait("\\server\it$\Install\Autodesk\DWF Viewer 5.1.0.527\DwfViewerSetup.exe /q","\\server\it$\Install\Autodesk\DWF Viewer 5.1.0.527") RunAsSet() Visit the SciTE4AutoIt3 Download page for the latest versions - Beta files Live for the present, Dream of the future, Learn from the past. #### Share this post ##### Link to post ##### Share on other sites Is the script running from a UNC or mapped drive ? Try adding the workdir parameter to RunWait: RunAsSet("admin", "domain", "pass") RunWait("\\server\it$\Install\Autodesk\DWF Viewer 5.1.0.527\DwfViewerSetup.exe /q","\\server\it\$\Install\Autodesk\DWF Viewer 5.1.0.527")
RunAsSet()

<{POST_SNAPBACK}>

that did the trick thankx

problem is that after I posted this I discovered CPAU

http://www.joeware.net/win/free/tools/cpau.htm

Simpler solution.

Not sure which I'm going to use now, but thankx

## 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