Users Guide

'*** 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"SettingtheBIOSpasswordfailed."
End If
'*** Sub used to display the correct usage of the script
'***
'*** Sub 用于显示脚本的正确用法)
Sub Usage()
Dim strMessage
strMessage = "Incorrect syntax. You should run: " & vbCRLF & _
"cscript.exe//nologoSampleBIOSPwd.vbs<systemname>"&Chr(34)&_
"<oldpwd>space<newpwd>"&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 CellularRadio
l ChassisIntrusion
l ChassisIntrusionStatus
l FastBoot
l HotDocking
l Hyperthreading
1
l IDEController
l IntegratedAudio
l InternalMiniPCI
l LowPowerS5
l MultiCore
2
l NoExecute