Solved

Batch file or VB file to gather specific server info

Posted on 2011-03-07
4
485 Views
Last Modified: 2012-05-11
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?
0
Comment
Question by:dtidwell69
  • 2
4 Comments
 
LVL 4

Expert Comment

by:ChuckDeezel
ID: 35058808
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:
http://support.microsoft.com/kb/q300887/
0
 

Author Comment

by:dtidwell69
ID: 35059116
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?
0
 

Author Comment

by:dtidwell69
ID: 35063496
This was ment mainly for Server 2003.  Is there another way to get this info automaticly?
0
 
LVL 4

Accepted Solution

by:
FireW0lf earned 500 total points
ID: 35067125
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%

C:\AdminTools>

You can also have this save the output to a file
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Suggested Solutions

Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

679 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