Remotely getting windows registry quota percentage.

Posted on 2007-08-07
Last Modified: 2013-11-30

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
Question by:johnth1957
    LVL 2

    Accepted Solution

    Try this, save as vbscript file (.vbs).  Set 'strServer' to be server you want to check.

    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

    Then calculate based on current and max sizes.  Hope it helps.

    Author Comment

    Works like a champ!

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    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…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now