Jump to content

Recommended Posts

Guest newb7560
Posted

I am having a problem getting this simple script to run on 2000 professional running SP4 systems. I have not had any trouble getting this script to work on XP SP2 machines.

The runas service is running on the 2000 machine.

Here is the script

RunAsSet("test", "commsoft" ,"test",1)

Run("\\Alb-file\common\Client Support\Quality Assurance\GUI-CVWIN\CVWIN 8.4.3\CVWIN.EXE dsn=commdev2","\\Alb-file\common\Client Support\Quality Assurance\GUI-CVWIN\CVWIN 8.4.3",@SW_HIDE)

Very simple right?

When I take out the runasset statement everything works fine, but this will not work in a production environment because my users are assigned to the user group and I need them to have admin priv to run my application.

So the error that I am receiving is the following:

Unable to execute the external program

unknown user name or bad password

Now I know that the username and password are correct because if I run the script from the XP machine I am fine.

Any help would be greatly appreciated.

Posted

tyy it form the cmd prompt

runas /user:<domain>\<user> cmd

see what errors that gives you.

off topic

i have trouble sometime using \\server\share\program

i have much better luck using \\server.domain.tld\share\program

hope that helps

Guest newb7560
Posted (edited)

Thanks for the suggestion but here is what I have found

I needed to add the @logonDomain in the RunAsSet for the 2000 machines for this to work. All is well right now.

RunAsSet("test",@logonDomain ,"test")

Not sure why but it works.

Thanks

Edited by newb7560

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
×
×
  • Create New...