Remotely getting windows registry quota percentage.

Hello,

Is there a way to obtain through writting a program that I can remotely get the computer registry quota percentage that is connected on a LAN ?

I have 50 pc's running windows 2000 running terminal services that have a registry quota issue, and this eventually gets to near 100% in which I have to re-image the machines which stinks.

Thanks in advance
johnth1957Asked:
Who is Participating?
 
charliebiscottiConnect With a Mentor Commented:
Try this, save as vbscript file (.vbs).  Set 'strServer' to be server you want to check.

strServer="."
Set objWMIService = GetObject("winmgmts:\\" & strServer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_Registry",,48)
for each objItem in colItems
      wscript.echo objItem.CurrentSize
      wscript.echo objItem.MaximumSize
Next

Then calculate based on current and max sizes.  Hope it helps.
0
 
johnth1957Author Commented:
Works like a champ!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.