Can a wild card be used for registry key value names in a script like this?

0

down vote

favorite





Basically I m trying to create a script that when ran will look for any devices in the registry key that begin with a double slash and remove them. I can go into more detail but it would be lengthy and pointless. There are to many names to just write a script with all of them. I can handle writing the loop but I need help getting this part to work first. Thanks in advance for any help.

REG DELETE HKCU\Software\Microsoft\Windows NT\CurrentVersion\Devices /v \\* /f

david2015-07-22T09:42:49Z

It would be possible to write a script that would do this. I'm not sure that it would be possible to do in a batch file, though.

Ian C2015-07-22T11:16:22Z

Yeah it is starting to look like it needs to be a VBScript.