Jump to content

Need help with simple runas statement


Guest getsome
 Share

Recommended Posts

Guest getsome

Can't get the following to work

RunAsSet("admin", "domain", "pass")

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.

Link to comment
Share on other sites

  • Developers

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()

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

Link to comment
Share on other sites

Guest getsome

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...