Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: wntAccessAdd ENUM
Is there a way I can change the permissions on Enum to create keys and values and update this registry key in Winbatch? I would like to make the change or add the entry and then it would be ok to change the permissions back to read only.
The current version of the wntAccessAdd function in the NTnetwork extenders applies registry permissions to subkeys as well.
The following code changes the permissions on a registry key and any subkeys.
AddExtender("WWWNT34I.DLL") RegHandle=RegOpenKey(@RegCurrent,"Control Panel\Desktop") Ok=wntAccessAdd("", RegHandle, "NWANT2",401, "Reg:Full") RegCloseKey(RegHandle)You can change permissions on remote registries by doing a RegConnect first, and then using the handle returned from RegOpenKey.
Article ID: W13713
Filename: Change Registry Permissions and Modify Read-Only Subkeys.txt
File Created: 2001:03:01:13:18:08
Last Updated: 2001:03:01:13:18:08