Re: Registry Permissions Error

From: Michel Gallant (MVP) (neutron@istar.ca)
Date: 02/20/03


Date: Thu, 20 Feb 2003 12:43:12 -0500
From: "Michel Gallant (MVP)" <neutron@istar.ca>


You are running into user permissions to access the registry. This level of
security is "below" .net so applies to it also.
All settings are discussed in detail in W2k ResKit herre:
 http://www.microsoft.com/windows2000/techinfo/reskit/en-us/default.asp?url=/windows2000/techinfo/reskit/en-us/prork/prdd_sec_njrp.asp

Note sections on HKCU versus HKLM permissions for various users.

 - Michel Gallant
   MVP Security
   http://www.jensign.com

Scott Adams wrote:

> Hello.
>
> I have created a Windows application with VB.NET that depends heavily on
> writing to, reading from, and creating keys in the registry. All is well on
> my dev box which runs Win2K pro (on an Admin account). When I install the
> app on a user's machine who is not an Administrator (restricted security
> policy), the user is not able to create keys in the registry. (The same is
> true if the user manually tries to open regedit.exe and tries to create a
> key.) I have researched heavily into this issue, yet the answer evades me.
> Can someone help please? Thanks.
>
> Sample code:
> Public Sub SampleSub
> Dim regKey as Microsoft.Win32.RegistryKey = _
> Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\MyApp",
> True)
> regKey.SetValue("MyValue","MyData")
> regKey.Close
> End Sub
>
> Error message is from "mscorlib"; "Requested registry access is not
> allowed."
>
> Scott Adams
> AdamsSoft Co.



Relevant Pages

  • Re: IPSec Registry Settings
    ... that has XP Pro also and I searched through the registry for all instances ... Is it okay to merge these keys into my registry? ... with permissions, security or whatever? ...
    (microsoft.public.windowsxp.security_admin)
  • Re: IPSec Registry Settings
    ... Merging the IPSec registry keys shouldn't have any adverse affects ... If importing all those registry settings doesn't work, ... Microsoft/Windows/Networking/Secure Network Services/IP Security Software Test Engineer ... I went to another computer> that has XP Pro also and I searched through the registry for all instances> of IPSec and exported all the keys, except 2 which I'll have to do manual> entries on. ...
    (microsoft.public.windowsxp.security_admin)
  • RE: How to access registry
    ... Reduce security on the registry to allow IUSR access. ... Create a windows service that can accept commands by Remoting (a Registry ... exposure by only exposing keys you know are going to be changed by your ... > so then i changed impersonate to "true" and it is reading values from the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: SMS 2.0 Component Errors - Pre Upgrade
    ... It's possible that the registry is corrupt, ... The other suggestion is try an upgrade instead of site reset. ... ACLRESET will fix the permissions but will not fix the keys. ... SMS Inventory Data Loader has moved this file to ...
    (microsoft.public.sms.admin)
  • RE: Extracting NT password hashes from registry export file
    ... Extracting NT password hashes from registry export file ... This list is provided by the SecurityFocus Security Intelligence Alert Service. ...
    (Pen-Test)