Re: always run as administrator

From: Roger Abell [MVP] (mvpNOSPAM@asu.edu)
Date: 03/07/03


From: "Roger Abell [MVP]" <mvpNOSPAM@asu.edu>
Date: Fri, 7 Mar 2003 08:16:13 -0700


IN XP Pro you can use the /savecred switch of the RunAs
command. In both versions you can force-feed the password
if you launch the app from a script. However, this last method
leaves the password rather easily obtainable from the filesystem
even if the script has been obfuscated.
http://msruniv.corp.bcentral.com/Shared%20Documents/runas_admin_script.vbs.txt
outlines the script steps needed, and you should then look into
using the script encoder
http://msdn.microsoft.com/downloads/default.asp?URL=/downloads/sample.asp?url=/msdn-files/027/001/789/msdncompositedoc.xml
Just do not believe that this encoding is a strong, fool-proof
encryption, as it is not.

If your machine is Pro, the /savecred switch is the way to go.
Using /savecred the first time a user launches the app the pwd
of the account must be entered. Afterwards, when the /savecred
switch is used the earlier acct/pwd info is automatically used, and
will work for that user until the pwd of the account named in the
RunAs saved credentials is changed.

-- 
Roger Abell
MS MVP (Security, Windows), MCDBA,  MCSE both
Associate Expert - Windows XP ExpertZone
http://www.microsoft.com/windowsxp/expertzone
"JOhn" <john@nospam.com> wrote in message news:036f01c2e3f1$6708d210$a001280a@phx.gbl...
> Is there a way of setting a program or shortcut to ALWAYS 
> run as administrator.  Usually you have to enter the 
> administrators password each time it is run, but I need 
> to set it so you dont have to do this, it retains the 
> password and always runs as the local administrator. Can 
> this be done?
> 
> Thanks
> 
> John


Relevant Pages

  • Re: Slow switch?
    ... > replaced the whole series with a switch statement. ... Suddenly, the script ... > do its job once it is launched, but it does seem to take longer to launch. ... It may indeed be quite slower, on at least one of two counts: ...
    (comp.lang.tcl)
  • Im sure this is a silly question
    ... I have an application that is started by a script in .kde/Autostart. ... When this app is started a console window appears, ... when you launch it manually from a console window) (BTW, ...
    (Fedora)
  • Re: Set default browser and email programs
    ... Kmenu | KDE Components | Component Chooser, and you can select your default ... script to launch it if you want to run multiple instances. ... switch accordingly. ...
    (alt.os.linux.suse)
  • Launch App/3 Tabs/Close=Help Please!
    ... I'm trying to create a script to do a few things. ... In IE launch the VBS through a local webpage. ... select "Open" on the File Download Dialog. ... Once ESC is press via the keyboard have App "x" close ...
    (microsoft.public.scripting.vbscript)
  • Re: Launch App/3 Tabs/Close=Help Please!
    ... Download and use AutoIT - it'll script it all and even compile the script to an executable. ... In IE launch the VBS through a local webpage. ... Once ESC is press via the keyboard have App "x" close ...
    (microsoft.public.scripting.vbscript)