[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Batch file or VB file to gather specific server info

Posted on 2011-03-07
4
Medium Priority
?
509 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
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…

649 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