Run As Other User default account

D

Don Priebe

Is there any way to set the default account name that comes up in the "Run
As Other User" dialog box? I want it to default to another password
protected account name (e.g. "Payroll"), not to "Administrator". The
"Payroll" account has access to the data files but not administrative
privileges. Yes, I know the user can type it in, but I am trying to
eliminate that step.
 
R

Roger Abell

If there is a specific application that you RunAs with the
Payroll account then what you can do is
- make a shortcut to that application launcher
- right click on the new shortcut and select its properties
- click on the Shortcut tab, locate the Target field and then
surround what is there in " " double quotes
- now, at the beginning before the quoted command enter
runas /user:payroll " . . . "
You may want to add some other switches, like /profile
runas /profile /user:payroll " . . . "
 
D

Don Priebe

You may want to add some other switches, like /profile
runas /profile /user:payroll " . . . "

Thank you. The /profile option was the key to getting runas to operate
properly.

Don (of the Fortran era)
 
R

Ryan Hanisco

Yeah... and there isn't a way for you to specify the password in a batch,
even with a pipe.

You can, however use a utility called sanur to supply both the username and
password.

Google sanur.exe...

-
Ryan Hanisco
MCSE, MCDBA
Flagship Integration Services
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top