Tag Archives: bat

Batch code snippet to query, then update dynamic values in registry

By | September 21, 2016

The snippet pulls sub-keys from the “HKLM\SYSTEM\CurrentControlSet\Control\Class” and passing each to a call to a “:FindAndReplace” section with the full key as an argument.  The reason I call a section from the Do, is because %ErrorLevel% was not populating correctly inside of a for loop. /BG