Re: How to identify a motherboard?
- From: Dhropta Guli <bloke@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 07 May 2009 18:00:36 +0100
GP wrote:
I guess the script got messed up. I see that not only line 5 but others have been broken. You need to have the next line also in the same line 5 at the end. I think everytime i will try to correct this this will get bfroken everytime, so I have added a sample script file at http://www.4shared.com/file/103946799/a8c31372/Win32_BaseBoard.html
download the txt file and rename the extension to vbs file.
"Dhropta Guli" wrote:
GP wrote:copy the following lines into a file called baseboard.vbs created on teh desktop. Double click the vbs file and it will create a csv file to tell you the details about the mother board. This basically is a WMI script using win32_baseboard class. If you have any issues with the script you can download scriptomatic tool from http://www.microsoft.com/downloads/details.aspx?familyid=09dfc342-648b-4119-b7eb-783b0f7d1178&displaylang=enI've just tried this myself as I have aspare computer with an unknown moherboard but I get "Line 5 unterminated string error character 70" when I run it. What do I alter?
run it and find teh script for win32_baseboard or let me know your email id to send the script.
'=======================
On error resume next
Dim sComputerName,WMI_Obj,WMI_ObjProps,ObjClsItem
sComputerName=InputBox("Enter Computer Name: . for local computer ","Select target computer",".")
If Len(Trim(sComputerName)) = 0 Then sComputerName = "."
Set WMI_Obj = GetObject("winmgmts:\\" & sComputerName & "\root\cimv2")
Set WMI_ObjProps = WMI_Obj.ExecQuery("Select * from Win32_BaseBoard", , 48)
Set filesys = CreateObject("Scripting.FileSystemObject")
Set results = filesys.CreateTextFile("Win32_BaseBoard_output.csv") results.writeline "Caption, ConfigOptions, CreationClassName, Depth, Description, Height, HostingBoard, HotSwappable, InstallDate, Manufacturer, Model, Name, OtherIdentifyingInfo, PartNumber, PoweredOn, Product, Removable, Replaceable, RequirementsDescription, RequiresDaughterBoard, SerialNumber, SKU, SlotLayout, SpecialRequirements, Status, Tag, Version, Weight, Width, "
For Each ObjClsItem in WMI_ObjProps
results.writeline ObjClsItem.Caption & "," & ObjClsItem.ConfigOptions & "," & ObjClsItem.CreationClassName & "," & ObjClsItem.Depth & "," & ObjClsItem.Description & "," & ObjClsItem.Height & "," & ObjClsItem.HostingBoard & "," & ObjClsItem.HotSwappable & "," & ObjClsItem.InstallDate & "," & ObjClsItem.Manufacturer & "," & ObjClsItem.Model & "," & ObjClsItem.Name & "," & ObjClsItem.OtherIdentifyingInfo & "," & ObjClsItem.PartNumber & "," & ObjClsItem.PoweredOn & "," & ObjClsItem.Product & "," & ObjClsItem.Removable & "," & ObjClsItem.Replaceable & "," & ObjClsItem.RequirementsDescription & "," & ObjClsItem.RequiresDaughterBoard & "," & ObjClsItem.SerialNumber & "," & ObjClsItem.SKU & "," & ObjClsItem.SlotLayout & "," & ObjClsItem.SpecialRequirements & "," & ObjClsItem.Status & "," & ObjClsItem.Tag & "," & ObjClsItem.Version & "," & ObjClsItem.Weight & "," & ObjClsItem.Width & "," & " "
Next
'============================
"unknown" wrote:
Bob
That worked, thanks for the help
Bob
.
- References:
- RE: How to identify a motherboard?
- From: GP
- Re: How to identify a motherboard?
- From: Dhropta Guli
- Re: How to identify a motherboard?
- From: GP
- RE: How to identify a motherboard?
- Prev by Date: Re: Office 2003 problem..
- Next by Date: Re: Should I quit?
- Previous by thread: Re: How to identify a motherboard?
- Next by thread: Re: How to identify a motherboard?
- Index(es):
Relevant Pages
|