Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extracting Graphics Card Info: Possible?

Status
Not open for further replies.

GGleason

Technical User
Mar 22, 2001
321
US
Has anyone used vbscript to output graphics card data (e.g., card type and memory) to an ASCII file?

I would like to integrate that code into my current script that gives me the PC name, MAC address, etc.

TIA,
GGleason
 
Have a look at the Win32_DisplayControllerConfiguration WMI class.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks PH, that pointed me in the right direction.

The answer to my question is "yes".

I am indebted to the following web site for help:


For anyone who is interested in the vbscript to report the graphics card information:
[tt][blue]
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_VideoController",,48)
Wscript.Echo "Items collected: " & colItems
Wscript.Echo upper(colItems)
For Each objItem in colItems
Wscript.Echo "AdapterRAM: " & FormatNumber(objItem.AdapterRAM /1024\1024, 0) & " MB"
Wscript.Echo "Caption: " & objItem.Caption
Next
[/blue][/tt]
 
GGleason, you should download a copy of scriptomatic from microsoft.com/scripting. It will show you all of the different classes that WMI supports and write scripts for you.

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top