Re: Escalation of privilege
From: Buz [MSFT] (buzb_at_online.microsoft.com)
Date: Mon, 29 Dec 2003 15:38:51 -0500
Have you looked into using RunAs?
HOW TO: Enable and Use the "Run As" Command When Running Programs in Windows
MCSE NT4 / Win2K
Microsoft Enterprise Domain Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please do not send e-mail directly to this alias. This alias is for
newsgroup purposes only.
"Nicolas Macarez" <firstname.lastname@example.org> wrote in message
> 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
> 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
> 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 !