Re: Permissions prob writing to Reg

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

From: Terry Holland (tholland_at_sgbgb.co.uk)
Date: 03/10/04


Date: Wed, 10 Mar 2004 14:15:15 -0000

Ok
So if there are application specific values that all users of the system
need read/write access on (and these values need to be in the registry - for
reasons that would take too long to explain), where would be the best place
for them?
If this is in Current_User how do I get the keys to be in Current_User for
all users?

tia

"Ralph" <nt_consulting32@hotmail.com> wrote in message
news:ktednQZ5M6JURtDdRVn-uQ@arkansas.net...
>
> "Terry Holland" <tholland@sgbgb.co.uk> wrote in message
> news:umzdSwcBEHA.4080@TK2MSFTNGP09.phx.gbl...
> > I have an app that reads & write to
> > [HKEY_LOCAL_MACHINE\SOFTWARE\MyCompany\MyApp] in the registry. On my
> > development machine this is fine as I am in the Local Administrators
> group,
> > but the users of the application get permission error when attempting to
> > write to this key (they are in Users group). How do I overcome this?
> >
> > tia
> >
> > Terry Holland
> >
>
> Either give users Admin or write priviledges to this key (which is
something
> I hope your Admin will not allow) or don't use the HKEY_LOCAL_MACHINE hive
> for writes. Use the HKEY_CURRENT_USER.
>
> I you have a large number of reads and writes, use a separate .ini/config
> file and place it in the %AllUsers Profile%/ApplicationData folder,
> %UserProfile%/Application Data, %ProgramFiles%/Common Files, ...
>
> hth
> -ralph
>
>



Relevant Pages

  • Deny Logon Locally
    ... In Windows XP pro can anybody tell me the actual registry ... keys that are changed when a "Deny Logon Locally" group ... policy is set? ... TIA ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Remove Unused Icons
    ... I used Resco Explorer 2003 to search for all instances of the program in ... question and then deleted all keys that related to it. ... >> tried hacking the registry but they're still there! ... >> TIA. ...
    (microsoft.public.pocketpc)
  • 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: Non admin users cant do things they need to do
    ... You mean they are along with the registry entires? ... i added the keys below to the registry (as administrator) logged off, ... can set the time then they can fake out system event logs by changing ...
    (microsoft.public.windowsxp.embedded)
  • Re: 0x80070005 Installation Failure message
    ... I wonder why Microsoft ... it had different permissions than other ... Before you modify the registry, ... > one or more registry keys could not be deleted ...
    (microsoft.public.windowsupdate)