I need to Delete selected subkeys in a registry key. For one of the subkeys I need to delete I tried:
(SET _KEY=SOFTWARE\Microsoft\Windows\CurrentVersion\UFH\SHC)
REG Delete "HKCU\%_KEY%" /V "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\UltraVNC\UltraVNC Viewer\UltraVNC Viewer (Listen Mode Encrypt)).lnk
C:\Program Files\uvnc bvba\UltraVNC\vncviewer.exe
-dsmplugin SecureVNCPlugin64.dsm -listen 5500
" /f
And it asked me (Y or N)
I know it didn't work because it shouldn't have asked (Y or N) because I have /f. I think the problem is the subkey has multiple lines. I have about 60 subkeys that I need to delete under this Key. All the sub keys I need to delete have "uvnc bvba" in the subkey. It would be nice to have a for loop to find the right ones to delete.