Users Guide
'*** Check that the right executable was used to run the script
'*** and that all parameters were passed
'*** (检查使用正确的可执行文件运行脚本
'*** 且所有参数都通过验证)
If (LCase(Right(WScript.FullName, 11)) <> "cscript.exe" ) Or _
(Wscript.Arguments.Count<2)Then
CallUsage()
WScript.Quit
End If
'*** Initialize variables
'*** (初始化变量)
strNameSpace = "root/Dellomci"
strComputerName = WScript.Arguments(0)
strClassName = "Dell_Configuration"
strKeyValue = "Configuration"
strPropName = "Password"
strPassEncryptPropName = "PasswordEncrypted"
strPwd = WScript.Arguments(1)
'*** Retrieve the instance of Dell_Configuration class (there should
'*** only be 1 instance).
'*** (检索 Dell_配置类示例
'*** (只能有 1 个示例)。)
Set objInstance = GetObject("WinMgmts:{impersonationLevel=impersonate}//" &_
strComputerName&"/"&strNameSpace&":"&strClassName&"="&_
Chr(34)&strKeyValue&Chr(34))
'*** Set the new value for the property and save the instance
'*** (为属性设置新值并保存实例)
objInstance.Properties_.Item(strPropName).Value = strPwd
objInstance.Properties_.Item(strPassEncryptPropName).Value = 0
objInstance.Put_
'*** If any errors occurred, let the user know
'*** (如果出现任何错误,让用户知道)
If Err.Number <> 0 Then
WScript.Echo"SettingtheBIOSpasswordfailed."
End If
'*** Sub used to display the correct usage of the script
'*** (Sub 用于显示脚本的正确用法)
Sub Usage()
Dim strMessage
strMessage = "incorrect syntax. 用户应该运行:" & vbCRLF & _
"cscript.exe//nologoSampleBIOSPwd.vbs<系统名称> " & Chr(34) & _
"<oldpwd>space<newpwd>"&Chr(34)
WScript.Echo strMessage
End Sub
OMCI 中支持的 BIOS 标记
OMCI 中支持的 BIOS 标记有:
l ASFMode
l AudioMode
l AutoOn
l AutoOnHour
l AutoOnMinute
l BootSequence
l BuiltinFloppy
l BuiltinNIC
l BuiltinPointingDevice
l ChassisIntrusion
l ChassisIntrusionStatus
l FastBoot
l HotDocking
l Hyperthreading
l IDEController
l IntegratedAudio
l InternalMiniPCI










