• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 530
  • Last Modified:

Batch file or VB file to gather specific server info

Hello out there,

I am needing a batch file or VB cmd to gather the below server info.  Please help, my eyes are tired of looking at google.  Also can this info below be gathered across the local network.  I would like to run a script from one server and have it grab this info from other servers on the local network.

1. Current RAM Utilization
2. Last Reboot Date & Time
3. Free space of C:, D: and E:

And I need to know how to permanently set the "File Version" column in Windows Explorer?
  • 2
1 Solution
You can gather a ton of info using the msinfo32.exe file. This file can be used to dump the information to a .txt file or .nfo file which can then be copied. So you do a simple batch file to run msinfo32.exe with the appropriate switch (example /report {Path} for a .txt report or /computer {ComputerName} for remote computer). It should be noted that this is only for use with XP, Vista, or 7.

I write this with the assumption that you are familar with batch scripting. So bascially run the exe with the appropriate switches and it will start, run the report and save it to the location you specify.

MS article about the program's switches:
dtidwell69Author Commented:
Yeah.... I'm not that smart on batch files.  Sorry I am however learning slowly.  Could you write the script for me please.  By the way how can I automate the info I need for server 2003?
dtidwell69Author Commented:
This was ment mainly for Server 2003.  Is there another way to get this info automaticly?
PSTools (free from MS) give some very handy info

Run the command:
PSInfo -d -u Username -p Password \\RemotePcNameOrIP

and you will get:

C:\AdminTools>Psinfo.exe -d

PsInfo v1.75 - Local and remote system information viewer
Copyright (C) 2001-2007 Mark Russinovich
Sysinternals - www.sysinternals.com

System information for \\RCSHLAP02:
Uptime:                    1 day 0 hours 10 minutes 41 seconds
Kernel version:            Windows Vista (TM) Business, Multiprocessor Free
Product type:              Professional
Product version:           6.0
Service pack:              2
Kernel build number:       6002
Registered organization:   HP
Registered owner:          setup
???, ???
Activation status:         Error reading status
IE version:                8.0000
System root:               C:\Windows
Processors:                2
Processor speed:           1.9 GHz
Processor type:            Intel(R) Core(TM)2 Duo CPU     T7250  @
Physical memory:           3064 MB
Video driver:              Mobile Intel(R) 965 Express Chipset Family
Volume Type       Format     Label                      Size       Free   Free
    C: Fixed      NTFS                             102.90 GB    1.97 GB   1.9%
    D: Fixed      NTFS       HP_RECOVERY             7.34 GB  755.21 MB  10.1%
    E: Fixed      NTFS       OS_TOOLS                1.55 GB    1.32 GB  84.8%
    F: CD-ROM                                                             0.0%
    G: CD-ROM                                                             0.0%


You can also have this save the output to a file
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.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now