How to set "The following user" as the default option in Run As di

  • Thread starter Thread starter yaugenka
  • Start date Start date
Y

yaugenka

Hi,
To start a program with other user credentials you can right click on the
program file or its shortcut and choose Run As command.
You will be prompted with a dialog box that has two options: Current user
and The following user.
By default the first option is set.

The fact is that in almost all cases you run this dialog to launch a program
or tool with other user credentials.
So you first have to click "The following user" option, and only after that
you will be able enter the creds.

Above all when you choose the second option the System administrator name
will be chosen by default.

Is it possible to set "The following user" as the default option in Run As
dialog?
And how to make the system to choose other than sys admin name by default?

Thanks
 
yaugenka said:
Hi,
To start a program with other user credentials you can right click on the
program file or its shortcut and choose Run As command.
You will be prompted with a dialog box that has two options: Current user
and The following user.
By default the first option is set.

The fact is that in almost all cases you run this dialog to launch a
program
or tool with other user credentials.
So you first have to click "The following user" option, and only after
that
you will be able enter the creds.

Above all when you choose the second option the System administrator name
will be chosen by default.

Is it possible to set "The following user" as the default option in Run As
dialog?
And how to make the system to choose other than sys admin name by default?

Thanks

If this is for just one or a few specific shortcuts, I'd do it by changing
the properties of the shortcut. I have a User Manager shortcut to one of our
old domains that I run with this in the shortcut's target:

%windir%\system32\runas.exe /env /user:<OldDomainName>\<MyOldLoginName>
c:\windows\system32\usrmgr.exe

When started, it just asks for my password then I'm in.

Can't confirm this to work in a non-domain environment, but I would think it
will - just give it a try, possibly also doing away with the full path. Eg:
if your computer's name is Doris:

runas /user:doris\yaugenka notepad.exe

You might need to enclose the path to your app in inverted commas if it
contains a space, eg in the above, replace

notepad.exe

with

"C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe"

Fuller details available by typing "runas /?" in a command prompt box or via
the good auspices of Google, eg first hit I got:
http://technet.microsoft.com/en-us/library/cc781769.aspx looks useful.
 
Back
Top