?
Solved

Remotely getting windows registry quota percentage.

Posted on 2007-08-07
2
Medium Priority
?
297 Views
Last Modified: 2013-11-30
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
0
Comment
Question by:johnth1957
2 Comments
 
LVL 2

Accepted Solution

by:
charliebiscotti earned 500 total points
ID: 19646808
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
 

Author Comment

by:johnth1957
ID: 19653902
Works like a champ!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Good afternoon all, We are running a VM infrastructure on a clustered ESX environment with two DELL R710's.  One of our IT Application Support Engineers contacted me and asked if it was possible to extend the partition of a certain Windows 2003 S…
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question