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