VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Get the information of System(Mother) board using Win32_BaseBoard WMI Class

by Karthikeyan (187 Submissions)
Category: Miscellaneous
Compatability: VB Script
Difficulty: Unknown Difficulty
Originally Published: Wed 28th July 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Get the information of System(Mother) board using Win32_BaseBoard WMI Class

Rate Get the information of System(Mother) board using Win32_BaseBoard WMI Class



'Generated using 'WMI Win32 Class Autoscript Generator' - Developed by Karthikeyan
'Homepage: http://www.geocities.com/marskarthik

On Error Resume Next
Computer = "."
Set OutFile = CreateObject("WScript.Shell")
Const ForAppending = 2
Set FileSystem = CreateObject("Scripting.FileSystemObject")
Set TextFile = FileSystem.OpenTextFile ("c:\Win32_BaseBoard.txt", ForAppending, True)
TextFile.WriteLine "Script for Win32_BaseBoard Class by Karthikeyan"
TextFile.WriteLine 
Set WMIService = GetObject("winmgmts:\\" & Computer & "\root\cimv2")
Set Items = WMIService.ExecQuery("Select * from Win32_BaseBoard",,48)
For Each SubItems in Items
TextFile.WriteLine "********************************************************************"
    TextFile.WriteLine "Caption: " & SubItems.Caption
    TextFile.WriteLine "ConfigOptions: " & SubItems.ConfigOptions
    TextFile.WriteLine "CreationClassName: " & SubItems.CreationClassName
    TextFile.WriteLine "Depth: " & SubItems.Depth
    TextFile.WriteLine "Description: " & SubItems.Description
    TextFile.WriteLine "Height: " & SubItems.Height
    TextFile.WriteLine "HostingBoard: " & SubItems.HostingBoard
    TextFile.WriteLine "HotSwappable: " & SubItems.HotSwappable
    TextFile.WriteLine "InstallDate: " & SubItems.InstallDate
    TextFile.WriteLine "Manufacturer: " & SubItems.Manufacturer
    TextFile.WriteLine "Model: " & SubItems.Model
    TextFile.WriteLine "Name: " & SubItems.Name
    TextFile.WriteLine "OtherIdentifyingInfo: " & SubItems.OtherIdentifyingInfo
    TextFile.WriteLine "PartNumber: " & SubItems.PartNumber
    TextFile.WriteLine "PoweredOn: " & SubItems.PoweredOn
    TextFile.WriteLine "Product: " & SubItems.Product
    TextFile.WriteLine "Removable: " & SubItems.Removable
    TextFile.WriteLine "Replaceable: " & SubItems.Replaceable
    TextFile.WriteLine "RequirementsDescription: " & SubItems.RequirementsDescription
    TextFile.WriteLine "RequiresDaughterBoard: " & SubItems.RequiresDaughterBoard
    TextFile.WriteLine "SerialNumber: " & SubItems.SerialNumber
    TextFile.WriteLine "SKU: " & SubItems.SKU
    TextFile.WriteLine "SlotLayout: " & SubItems.SlotLayout
    TextFile.WriteLine "SpecialRequirements: " & SubItems.SpecialRequirements
    TextFile.WriteLine "Status: " & SubItems.Status
    TextFile.WriteLine "Tag: " & SubItems.Tag
    TextFile.WriteLine "Version: " & SubItems.Version
    TextFile.WriteLine "Weight: " & SubItems.Weight
    TextFile.WriteLine "Width: " & SubItems.Width
TextFile.WriteLine "********************************************************************"
Next
TextFile.Close
OutFile.Run "notepad.exe c:\Win32_BaseBoard.txt",1,True


Download this snippet    Add to My Saved Code

Get the information of System(Mother) board using Win32_BaseBoard WMI Class Comments

No comments have been posted about Get the information of System(Mother) board using Win32_BaseBoard WMI Class. Why not be the first to post a comment about Get the information of System(Mother) board using Win32_BaseBoard WMI Class.

Post your comment

Subject:
Message:
0/1000 characters