Re: "RunAs" Command

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Kelly (kelly_at_mvps.org)
Date: 05/28/04


Date: Fri, 28 May 2004 04:06:22 -0500

Hi,

For Pro:

You can use the /savecred option to save it the first time the password is
entered and you dont need to enter it from then on.

You add the switch to the shortcut target. Right-click the shortcut and
select Properties, then the Shortcut tab. Edit the target line.

For example, this is the line to run Nero from a limited account:

%systemroot%\system32\runas.exe /user:computername\admin
 /savecred "D:\Program Files\ahead\Nero\nero.exe"

The first time you run it, enter the password. After that it won't ask for
one again.

HOW TO: Enable and Use the "Run As" Command When Running Program
http://support.microsoft.com/support/kb/articles/q294/6/76.asp

-- 
All the Best,
Kelly
Microsoft-MVP Windows® XP
2004 Windows MVP "Winny" Award
Troubleshooting Windows XP
http://www.kellys-korner-xp.com
Taskbar Repair Tool Plus!
http://www.kellys-korner-xp.com/taskbarplus!.htm
"Tada" <anonymous@discussions.microsoft.com> wrote in message 
news:13c6b01c44464$745914f0$a301280a@phx.gbl...
> HI,
>
> I am running XP Professional and wish to use the "RunAs"
> command to run a program as another user without
> switching to the other user's account.  I know the ID and
> the password and would like to set-up a single click
> command that would have ALL of this information embedded
> in it so that I won't have to keep remembering the other
> user's password.
>
> Is this possible ??  If so, I would highly appreciate
> some help and guidance...
>
> Thanks,
> Larry H. 


Relevant Pages

  • Re: Run As Administrator fails
    ... Enable and Use the "Run As" Command When Running Program ... You can use the /savecred option to save it the first time the password is ... You add the switch to the shortcut target. ... A command prompt with administrative credentials administrative credentials ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Run As Administrator fails
    ... Enable and Use the "Run As" Command When Running Program ... You can use the /savecred option to save it the first time the password is ... You add the switch to the shortcut target. ... A command prompt with administrative credentials administrative credentials ...
    (microsoft.public.windowsxp.general)
  • Re: Run As Administrator fails
    ... Enable and Use the "Run As" Command When Running Program ... You can use the /savecred option to save it the first time the password is ... You add the switch to the shortcut target. ... A command prompt with administrative credentials administrative credentials ...
    (microsoft.public.windowsxp.security_admin)
  • Re: runas
    ... > You add the switch to the shortcut target. ... > The first time you run it, ... my batch below kicks on a command line ... >> REM start command line shell as local admin ...
    (microsoft.public.windowsxp.general)
  • Re: Run As
    ... You add the switch to the shortcut target. ... The first time you run it, ... 2004 Windows MVP "Winny" Award ... > I have been able to use the runas command, but have not been able to pass ...
    (microsoft.public.windowsxp.general)