If you really want to script this you should take a look at this
article:
http://support.microsoft.com/kb/245031
There is another - easier - way though. A Group Policy can do this.
1. Create a new GPO and Edit it.
2. Go to: Policies -> Windows Settings -> Security Settings -> Registry
3. Right click on 'registry' an choose 'Add Key'
4. Browse to the key you want to set permissions on and Click 'OK'
5. A permissions dialog will pop up. Set the opermissions and Click OK.
6. Choose how you want to propagate this permissions and Click OK.
Good luck.
--
Zeda.nl - Windows Advanced Tips & Tricks
Op 16-3-2010 13:32, achinda schreef:
> I need to write a script to grant permission (Read only) to below
> mentioned key.
>
> This key is appearing from our software and users should have read
> access to this.
>
> please note that this exist on local machine only.
>
> HKEY_LOCAL_MACHINE\SOFTWARE\IBIS\IBIS\USERLOG
>
> i want to push this access from group policy.
> pls help
>
> pls look for the attachment to understand
>
>
> +-------------------------------------------------------------------+
> |Filename: KEy access.JPG |
> |Download: http://forums.techarena.in/attachmen...hmentid=10738|
> +-------------------------------------------------------------------+
>