Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Registry permissions

Status
Not open for further replies.

STEWARTH

MIS
Mar 26, 1999
75
GB
I need to give Read Permissions on a registry key to the local Users group (Win 2K). I want to to this via a script of some sort. The REGINI utility has no functionality to give the local Users group permissions (the Everyone group is not an acceptable substitute unfortunately).

Any ideas how I can achieve this?
 
Hi,

what about running regedt32.exe and select the security|permissions menu item.

Digga

Sharing Knowledge Saves Valuable Time!
 
Hi,

I've come across this at I'm sure you can make this work and regarding registry and editing you just need to know about regWrite, regRead and regDelete.


/**
* Script: CPUIdentChange.js
* Purpose: Changes the CPU Identifier stored in Registry
* Author: Daren Thiel
* Date: 15 January 1999
* Web: * Note: Rename this file CPUIdentChange.js
**/

/* Create Shell Object */
ws = WScript.CreateObject( "WScript.Shell" );

/* Write Data to registry */
var regkey = "HKLM\\Hardware\\Description\\System\\CentralProcessor\\0\\VendorIdentifier";
ws.RegWrite( regkey, "GenuineIntel" );

/* Tell the users what happened */
WScript.Echo( "Reset Registry to GenuineIntel" );

Hope this helps


Digga

Sharing Knowledge Saves Valuable Time!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top