Getting Specific System Info?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
User avatar
Phil Pendlebury
Automation Wizard
Posts: 543
Joined: Tue Jan 16, 2007 9:00 am
Contact:

Getting Specific System Info?

Post by Phil Pendlebury » Fri Apr 30, 2010 10:19 pm

Hi guys,

I need a way of getting some detailed system info into a script that will write a text file. I won't go into huge detail now but for example, at present we have within MS:
OS_VER
Operating System

WIN_DIR
Windows Directory Path

SYS_DIR
Windows System Directory Path
etc.

I did a search and found some other system variables like NUMBER_OF PROCESSORS etc. But MS doesn't seem to recognise them (which is fair enough - this is not a complaint of course).

So I thought about simply calling the systeminfo from command line but it really gives too much information, although not some of the info I need.

To be more specific - what I need are things like:
OS
CPU Type
CPU Speed
Graphics Card
Sound Card
+ Some other misc info

I also looked at some VB commands but as usual they blew my mind LOL.

So, has anyone any suggestions?

This is for a little project that I am sure everyone would find very interesting. It's to do with comparing performance of systems used for digital audio work.

I am planning to integrate it into a WordPress site and display the data in a table etc. But the front end will be a MSched Application.

Thanks in advance for any hints.

PS. I found this:

http://support.microsoft.com/kb/300887

But it doesn't seem to work as expected. It looks like it may be possible to call msinfo and write text file with specific categories but I cannot get it to do anything other than bring up eth big system info application.

Cheers,
Phil Pendlebury - Linktree

User avatar
Phil Pendlebury
Automation Wizard
Posts: 543
Joined: Tue Jan 16, 2007 9:00 am
Contact:

Post by Phil Pendlebury » Fri Apr 30, 2010 10:42 pm

Additional: OK getting there.

msinfo32 /report C:\Users\Phil\Downloads\SYSSUM.TXT /categories +Printing

Is kind of what I am after but I cant find a way of getting the categories.

I think this is not really a post meant for MS any more sorry.
Phil Pendlebury - Linktree

User avatar
alan1mtnview
Newbie
Posts: 19
Joined: Tue Jan 29, 2008 3:34 am
Location: Mtn View, Arkansas, USA
Contact:

RE: Getting Specific System Info?

Post by alan1mtnview » Wed May 05, 2010 4:09 pm

Hi, Phil.
I think I might actually have something to contribute here for a change. (Don't worry; I won't let it go to my head.:lol: )
I use MS and WMI all the time to generate data from networked machines, do remote install/uninstalls, etc.
Here's a link to Scriptomatic, by the "Microsoft Scripting Guys" that generates the WMI script in various languages, and outputs in various formats. I use it constantly.
http://technet.microsoft.com/en-us/scri ... 39957.aspx
Hope it does what you need.
Thanks,
Alan

User avatar
alan1mtnview
Newbie
Posts: 19
Joined: Tue Jan 29, 2008 3:34 am
Location: Mtn View, Arkansas, USA
Contact:

RE: Getting Specific System Info?

Post by alan1mtnview » Wed May 05, 2010 4:26 pm

I need to correct/clarify myself here: I use Powershell, WMI and MS to do a lot of what I need.
See why I don't let stuff go to my head? :oops:
Thanks,
Alan

User avatar
Phil Pendlebury
Automation Wizard
Posts: 543
Joined: Tue Jan 16, 2007 9:00 am
Contact:

Post by Phil Pendlebury » Wed May 05, 2010 4:32 pm

Thanks Alan, I'll give that a look. very kind of you to post back. :-)
Phil Pendlebury - Linktree

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts