Re: administrative rights in Batch file

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Al Dunbar [MS-MVP] (alan-no-drub-spam_at_hotmail.com)
Date: 03/17/04


Date: Wed, 17 Mar 2004 10:56:56 -0700


"Micah" <mcollins@deltatg.com> wrote in message
news:c01b01c40c38$e25b1b60$a601280a@phx.gbl...
> We currently only allow our end users Power user rights on
> there workstation. I have a small update (for a CA
> product) I want to deploy to everyone through their batch
> file, unfortunatly they need administrative privilages.
> Does any know the command to set that task to be installed
> as administrator?

There is no built-in command that can do this. RUNAS would, but the user
would then be prompted for the administrator password, and you don't want to
give that out.

Other options are available, including RunAsPro (ten euros per workstation),
SUNAR (freeware) and CPAU:

http://www.jsiinc.com/SUBO/tip7200/rh7258.htm

Just make sure that you do this carefully so as not to inadvertently either
reveal the administrator password, or provide a file with the password
embedded that could be used to run a different command than the one you want
to run to do your installation.

/Al

/Al



Relevant Pages

  • Re: The logon user file msgina.dll file is missing. restore it.
    ... Yet, when you do a DIR command in the Windows\System32 folder, the MSGINA.DLL file isn't there? ... Is this from the I386 folder on your hard disk or the Windows XP CD? ... Per user Group Policy Restrictions for XP Home and XP Pro ... I do not have an administrator password. ...
    (microsoft.public.windowsxp.basics)
  • Re: Question Multi A/V Tool
    ... You have to execute NET START WORKSTATION in a Command Prompt. ... and in the Command Prompt window enter; ...
    (microsoft.public.security.virus)
  • Re: The logon user file msgina.dll file is missing. restore it.
    ... for the dir command the error msg is "invalid parameters" ... for the prompt the error msg is "invalid command" ... I do not have an administrator password. ...
    (microsoft.public.windowsxp.basics)
  • Re: 2 workstation names
    ... SET command on a command prompt. ... When you logon to a domain it provide the following environment variables: ... LOGONSERVER - The authenticating domain controller ComputerName, ... For some reason I seem to have 2 workstation names on my W2K ...
    (microsoft.public.win2000.networking)
  • Re: The logon user file msgina.dll file is missing. restore it.
    ... What happens when you do the DIR command? ... MS-MVP Windows Media Center\Windows Powered Smart Display\Security ... I do not have an administrator password. ...
    (microsoft.public.windowsxp.basics)