title: How does one loop through a set of string value names in a registry key?
body: <p>I need to use VBScript to loop through a set of registry string value names located within a specific key, such as <code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run</code> and delete all the string values except for the ones that I specify.</p>
  
  <p>I was able to successfully delete a specific string value using <code>DeleteValue</code> and specifying the name of the string value. However, I would like to loop through each string value, get its name, check it and delete it if, for example, <code>strValueName != "ccApp"</code>. Is there an easy way to achieve this?</p>