Re: How to identify a motherboard?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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=en

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:

I'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?
Bob


That worked, thanks for the help
Bob
.



Relevant Pages

  • rundll32 printui.dll,PrintUIEntry /in /u /n
    ... a printer has to be installed (everytime. ... I am qutie sure that it happens because I run that script! ... got a message saying "a device attached to this computer is not working ... properl blar blar and keep on asking me to go back to Safe Mode, ...
    (microsoft.public.win2000.printing)
  • Re: How to identify a motherboard?
    ... 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. ... for local computer ... Set filesys = CreateObject ...
    (microsoft.public.windowsxp.general)
  • Script to reset Display Settings to 800x600?
    ... I need to come up with a script that will reset the desktop's Display ... settings to 800x600 everytime at login. ... Many users log on with their roaming ... which changes the next person's display settings. ...
    (microsoft.public.windows.server.scripting)
  • Re: How to set Classic Start Menu as Default - NOT force via GPO
    ... but how do I use the script to set up a default user ... I don't want to run it everytime at logon offcourse, ... do NOT want it to be a forced setting. ...
    (microsoft.public.windowsxp.setup_deployment)
  • email
    ... For the past week everytime I try to send out an email ... message a window pops up telling me there is a potential ... tell me there is no virus, except one I ran on Aug 28 ... that says "the script is attemtping to call the RegRead ...
    (microsoft.public.windowsxp.security_admin)