Microsoft KB Archive/171591

= Syntax Examples of Windows NT Server Registry Resource Kit Utilities =

Article ID: 171591

Article Last Modified on 10/31/2006

-

APPLIES TO


 * Microsoft Windows NT Server 4.0 Standard Edition
 * Microsoft Windows NT Workstation 4.0 Developer Edition

-



This article was previously published under Q171591



SUMMARY
This article contains information and examples of syntax for some of the utilities in the Windows NT Server 4.0 Resource Kit. The command-line help and Server Resource Kit help files may not make clear the syntax of these utilities.

The utilities discussed here are: Regchg, Regread, Regsec, and Rregchg.



Regchg.exe
Change or add registry values on the local computer. You cannot add keys. It operates on keys in the HKEY_LOCAL_MACHINE hive only. Use quotation marks around the hive path name if the path name has a space in it.

Usage: regchg "\"   

Examples: regchg "system\test key" Test REG_SZ 123

regchg system\test2 "test value" REG_SZ 123

regchg system\test2 Test REG_SZ 123

If the value named Test does not exist, it will be created and assigned the value of 123.

Regread.exe
Reads the registry of a local or a remote system, parses out values, and outputs them to the screen. Regread operates on keys in the HKEY_LOCAL_MACHINE hive only.

Usage: regread \\  

Examples: '''regread \\server system\test2 testvalue

regread \\server "system\test key" "test value"'''

Regsec.exe
This utility can produce very undesirable affects. Primarily, it is a simple way to make a workstation more secure so only Administrators who log on to the workstation have expected behavior. All non-administrators will have essentially an unusable workstation.

For more information, please see the following Microsoft Knowledge Base article:

160511 Regsec.exe Gives Strange Results for Non-Administrators

Removes the Everyone group from the permissions list for HKEY_LOCAL_MACHINE, HKEY_CLASSES_ROOT, and HKEY_CURRENT_USER hives on the local computer.

The command does not take parameters or switches.

Usage: regsec

Rregchg.exe
Creates or changes registry values on a remote computer. See Regchg.exe for limitations.

Usage: rregchg \\ "\"   <Value>

Examples: rregchg \\server "system\test key" TestData REG_SZ 123

For more information on the Rregchg.exe tool, please see the following Microsoft Knowledge Base article:

163327 How to Use the Rregchg.exe Tool

Additional query words: reskit utils command line DOS prompt

Keywords: kbinfo KB171591

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.