Solved

Batch file or VB file to gather specific server info

Posted on 2011-03-07
4
456 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
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 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

762 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

19 Experts available now in Live!

Get 1:1 Help Now