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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting a registry key

Status
Not open for further replies.

roontoon

MIS
Sep 25, 2010
15
0
0
US
Sorry for the newbie question but I am just learning how to script with vbscript. I have the need to delete/edit/andor add keys to the registry. I can seem to figure out how to do this. I am using the following as a test script.


Option Explicit
Dim WshShell, KEY1

Set WshShell = WScript.CreateObject("WScript.Shell")
KEY1 = "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaltPassword"
WshShell.RegDelete KEY1

Any wisdom would be most welcome. TIA

d
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top