I have seen the posts of deleting registry subkeys by enumerating them and checking with a loop. Does anyone know if you can manually delete the subkeys using this method. I am deleting the last subkey first then working my way up.
Set WshShell = Wscript.CreateObject("Wscript.Shell"
WshShell.RegDelete = "HKLM\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_VMODEM\0000\Control\"
WshShell.RegDelete = "HKLM\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_VMODEM\0000\"
WshShell.RegDelete = "HKLM\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_VMODEM\"
Also, is there a way to delete reg keys that have permissions on them (i.e Everyone - Read, SYSTEM - Full). Is there some way to "impersonate" SYSTEM priveleges when deleting reg keys? Or is there a way to set permissions through VBS??
Set WshShell = Wscript.CreateObject("Wscript.Shell"
WshShell.RegDelete = "HKLM\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_VMODEM\0000\Control\"
WshShell.RegDelete = "HKLM\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_VMODEM\0000\"
WshShell.RegDelete = "HKLM\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_VMODEM\"
Also, is there a way to delete reg keys that have permissions on them (i.e Everyone - Read, SYSTEM - Full). Is there some way to "impersonate" SYSTEM priveleges when deleting reg keys? Or is there a way to set permissions through VBS??