ThinWorld Citrix Knowledgebase

Friday, 8 May 2009

Regedt32 To delete Keys

Obviously Ive always known you can use REGEDT32.EXE to import reg Files into the registry but i did learn a new trick to me the other day and that is the ability to delete keys with the import.

This is done using the same format as normal but setting the value to -

eg. The Example below would delete the Public SNMP Trap (which is a good thing to do a the public account is a potential security flaw)


[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\ValidCommunities]
"ops"=dword:00000004
"2ndLine"=dword:00000010
"Public"=-