Re: Registry permissions
- From: "yeahh" <nospam@xxxxxxxx>
- Date: Sat, 19 Nov 2005 01:45:19 -0500
So you discovered the registry.
What else is new ?
"Jose Cintron" <l0rddarkf0rce@xxxxxxxxxxx> wrote in message
news:%23Lx0ZnG7FHA.3636@xxxxxxxxxxxxxxxxxxxxxxx
> OK I know of CheckAccess to verify that I have the given permission to a
> specific key (see code bellow)
>
> === snip, snip === Code ===
> Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
> strComputer & "\root\default:StdRegProv")
>
> strKeyPath = "SYSTEM\CurrentControlSet"
>
> oReg.CheckAccess HKEY_LOCAL_MACHINE, strKeyPath, KEY_QUERY_VALUE, _
> bHasAccessRight
> If bHasAccessRight = True Then
> Wscript.Echo "1. Have Query Value Access Rights on Key"
> Else
> === snip, snip === Code ===
>
> But what if want to list all of the permissions of a specific key. How
> would I do this?
>
>
.
- Prev by Date: Re: Win32_Product class missing in Server 2003?
- Next by Date: Re: How to delete the second line of a file
- Previous by thread: Re: Win32_Product class missing in Server 2003?
- Next by thread: Re: Registry ACL
- Index(es):
Relevant Pages
|