Reference Guide

9
Sample Scripts and BIOS Settings
This section provides sample scripts for various functionalities in OMCI.
Getting BIOS Settings
Below is a sample VBScript to get the current list of BIOS Settings on a client system.
'**********************************************************************
'*** Name: SampleGetBBIOSSettings.vbs
'*** Purpose: To get the current list of BIOS Settings on a Dell OMCI 8.0 client.
'*** Usage: cscript.exe /nologo SampleGetBBIOSSettings.vbs <systemname>
'*** This sample script is provided as an example only, and has not been
'*** tested, nor is warranted in any way by Dell; Dell disclaims any
'*** liability in connection therewith. Dell provides no technical
'*** support with regard to such scripting. For more information on WMI
'*** scripting, refer to applicable Microsoft documentation.
'**********************************************************************
'*** Declare variables
Dim objWMIService
Dim strComputerName
Dim strNameSpace
Dim strClassName
Dim ColSystem
Dim fso
Dim txtfile
Dim outString
Dim iTKVal
Dim ArrayItem
Dim objInstance
Dim strSpecialTK1
Dim strSpecialTK2
'*** Check that the right executable was used to run the script
403