tobyhutton

New Member
Joined
May 14, 2011
Messages
2
Hi There,

I've written a logon script which adds registry entires for users.

The script will work for administrators.
However this does not work Users.

I get the following Error

Error: Invalid root in registry key
Code: 80070005
Source: WshShell.RegWrite

The 80070005 is a permission error.

How can allow Users to write the key. The keys will only go into HKEY_CURRENT_ USER

The system is NOT joined to a domain.

The reason I do this is I have quite a few users that use my system.

Thanks
 


Solution
To allow users to write registry keys under HKEY_CURRENT_USER without being part of a domain, you need to adjust the permissions on the registry key in question. Here's how you can do this:
  1. Grant Write Permissions to the Registry Key:
    • Navigate to the specific registry key you want to grant write permission to.
    • Right-click on the key and select "Permissions."
    • Click on "Add" to add the user you want to grant permission to.
    • In the "Enter the object names to select" field, type the username of the user or group.
    • Click "Check Names" to validate the user/group, and then click "OK."
  2. Set Permissions:
    • Select the added user/group from the list of Group or user names.
    • Check the box for...
To allow users to write registry keys under HKEY_CURRENT_USER without being part of a domain, you need to adjust the permissions on the registry key in question. Here's how you can do this:
  1. Grant Write Permissions to the Registry Key:
    • Navigate to the specific registry key you want to grant write permission to.
    • Right-click on the key and select "Permissions."
    • Click on "Add" to add the user you want to grant permission to.
    • In the "Enter the object names to select" field, type the username of the user or group.
    • Click "Check Names" to validate the user/group, and then click "OK."
  2. Set Permissions:
    • Select the added user/group from the list of Group or user names.
    • Check the box for "Full Control" under the "Permissions for Users" section.
    • Click "Apply" and then "OK" to save the changes. By following these steps, users should now be able to write to the specific registry key under HKEY_CURRENT_USER without encountering the permission error 80070005. This will enable your logon script to add registry entries for users successfully.
 


Solution
Back
Top