VB Script deleting Registry Keys
I am writing a VB Script that makes all of the registry tweaks for my network upon login. I am attempting to delete a REG_SZ key. It is not named by default though. How do I delete an un named key? I tried the <No Name> that is displayed, doesn't work. I am sure this is real easy, can someone push me along?
I am using the following syntax:
msettings = "HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\"
' Delete old String Value
old = msettings & "<No Name>"
wshshell.RegDelete old
' Write new string value
icon = msettings & ""
user = "%USERNAME% on %COMPUTERNAME%"
wshshell.RegWrite icon, user, "REG_EXPAND_SZ"