Re: Escalation of privilege

From: Ron Bernier (ronbernier_at_hahahahatds.net)
Date: 11/17/03


Date: Mon, 17 Nov 2003 13:29:13 -0500

The other alternative to Torgeir's response is to simply give them modify
access to the registry keys they need access to ...

"Nicolas Macarez" <macarez@free.fr> wrote in message
news:eh%23MHYQrDHA.2568@TK2MSFTNGP09.phx.gbl...
> Hi Everyone
> I am working on a Windows 2000 Professional desktop (no domain controller,
> no Active Directory, everything is local).
>
> When a user, without any admin rights, logs on, a logon script is
executed.
> This VB script (WSH and WMI stuff) modifies some registry keys and entries
> under HKEY_CURRENT_USER and I need to run this script with the admin
> rights - otherwise certain entries are not modified because the users
doen't
> have the right to do so.
>
> How can I escalate the privilege INSIDE my script, and then release the
> rights afterwards, once the session is opened ?
>
> Help greatly appreciated !
>
> Nicolas
>
>