acunaara
asked on
Using VBScript. How to count the number of keys under a registry path?
How to check the presence of large number of keys under below registry path?
HKLM\SYSTEM\CurrentControl Set\Contro l\DeviceCl asses\{28d 78fad-5a12 -11d1-ae5b -0000f803a 8c2}\##?#R oot#RDPBUS #0000#{28d 78fad-5a12 -11d1-ae5b -0000f803a 8c2}
Note: Using VBScript.
Attaching image of the path and its subkeys
TSPorts.png
HKLM\SYSTEM\CurrentControl
Note: Using VBScript.
Attaching image of the path and its subkeys
TSPorts.png
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you Shaun!!!!
Exactly what I need
Exactly what I need
I included two versions of the code, one that just counts all the non default values under the base hive, and the other that also displays the keys and values along the way for testing / debugging. Wasn't sure exactly how you might use the routine and this helps demonstrate it in action.
Run from a command prompt as follows:
cscript EE28999350.vbs
*** CODE ***
Open in new window
*** TEST RESULTS ***Open in new window
~bp