Reference Guide
'*** Establish a connection to the dcim\sysman namespace
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate," &_
"AuthenticationLevel=pktprivacy}\\" & strComputerName & "\" &_
strNameSpace)
Set ColSystem=objWMIService.execquery ("Select * from " & strClassName)
For each objInstance in ColSystem
if (objInstance.CreationClassName = strKeyValueChassis) Then
strMessage = "Asset Tag: "
strMessage = strMessage & objInstance.Properties_.Item("Tag").Value
strMessage = strMessage & vbCRLF & "Service Tag: "
strMessage = strMessage & objInstance.Properties_.Item("ElementName").Value
End if
Next
'*** Retrieve all instances of DCIM_BIOSElement (there should only be 1 instance).
Set ColSystem=objWMIService.execquery ("Select * from " & strClassNameBIOS)
For each objInstance in ColSystem
strMessage = strMessage & vbCRLF & "BIOS Version: "
strMessage = strMessage & objInstance.Properties_.Item("Version").Value
Next
'*** Display the results
WScript.Echo strMessage
'*** Sub used to display the correct usage of the script
Sub Usage()
Dim strMessage
strMessage = "incorrect syntax. You should run: " & vbCRLF & _
"cscript.exe //nologo SampleSystemSummary.vbs <systemname>"
WScript.Echo strMessage
End Sub
'==========================================================================
' End
'==========================================================================
Sample Get RAID Type
Below is a sample VBScript that contains details of the sample GetRAID type.
'**********************************************************************
'*** Name: SampleGetRAIDType.vbs
'*** Purpose: To get the current list of BIOS Settings on a Dell OMCI 8.1 client.
'*** Usage: cscript.exe /nologo SampleGetRAIDType.vbs <systemname>
419










