Dell 7.6 Computer Accessories User Manual


 
Sample Scripts and BIOS Settings 59
'*** Declare variables
Dim strNameSpace
Dim strComputerName
Dim strClassName
Dim strPropValue
Dim objInstance
Dim ObjOutParam
Dim strMethod
Dim objMethod
Dim objClass
Dim objInParam
'*** Check that the right executable was used to run
the script
'*** and that all parameters were passed
If (LCase(Right(WScript.FullName, 11)) =
"wscript.exe" ) Or _
(Wscript.Arguments.Count < 2) Then
Call Usage()
WScript.Quit
End If
'*** Initialize variables
strNameSpace = "root/Dellomci"
strComputerName = WScript.Arguments(0)
strClassName = "Dell_Configuration"
strPropValue = "Configuration"
strMethod = "FlashBios"
'*** Retrieve the Dell_Configuration class
Set objClass =
GetObject("WinMgmts:{impersonationLevel=
impersonate}//" & _
strComputerName & "/" & strNameSpace & ":" &
strClassName)
Set objMethod = objClass.Methods_(strMethod)