Users Guide
'*** Sub used to display the correct usage of the script
Sub Usage()
Dim strMessage
strMessage = "Incorrect syntax. You should run: " & vbCRLF & _
"cscript.exe//nologoSampleBIOSPwd.vbs<systemname>"&Chr(34)&_
"<oldpwd>space<newpwd>"&Chr(34)
WScript.Echo strMessage
End Sub
('****************************************************
'*** Nombre: SampleBIOSPwd.vbs
'***Objetivo:cambiarlacontraseñadelBIOSenunclienteDellOMCI.
'***Uso:cscript.exe//nologoSampleBIOSPwd.vbs<nombre_del_sistema>"<contraseña
'***anterior>espacio<contraseñanueva>"
'***
'***Estasecuenciadecomandosdeejemploseproporcionaúnicamentecomomuestraynohasido
'***probabanitieneningunagarantíaporpartedeDell;Dellseeximedetoda
'*** responsabilidad relacionada con esta secuencia de comandos. Dell no proporciona asistencia
'***técnicarelacionadaconestetipodesecuenciasdecomandos.Paraobtenermásinformaciónsobresecuencias
'***decomandosdeWMI,consulteladocumentacióncorrespondientedeMicrosoft.
'****************************************************
'*** Declarar variables
Dim strNameSpace
Dim strComputerName
Dim strClassName
Dim strKeyValue
Dim objInstance
Dim strPropName
Dim strPwd
'***Comprobarqueseutilizóelarchivoejecutablecorrectoparaejecutarlasecuenciadecomandos
'***yqueseproporcionarontodoslosparámetros
If (LCase(Right(WScript.FullName, 11)) <> "cscript.exe" ) Or _
(Wscript.Arguments.Count<2)Then
CallUsage()
WScript.Quit
End If
'*** Inicializar las variables
strNameSpace = "root/Dellomci"
strComputerName = WScript.Arguments(0)
strClassName = "Dell_Configuration"
strKeyValue = "Configuration"
strPropName = "Password"
strPassEncryptPropName = "PasswordEncrypted"
strPwd = WScript.Arguments(1)
'*** Recuperar la instancia de la clase Dell_Configuration (debe haber
'*** solo 1 instancia).
Set objInstance = GetObject("WinMgmts:{impersonationLevel=impersonate}//" &_
strComputerName&"/"&strNameSpace&":"&strClassName&"="&_
Chr(34)&strKeyValue&Chr(34))
'*** Establecer el nuevo valor para la propiedad y guardar la instancia
objInstance.Properties_.Item(strPropName).Value = strPwd
objInstance.Properties_.Item(strPassEncryptPropName).Value = 0
objInstance.Put_
'***Sisepresentaalgúnerror,informaralusuario
If Err.Number <> 0 Then
WScript.Echo"FallóelestablecimientodelacontraseñadelBIOS."
End If
'*** Subrutina que se utiliza para mostrar el uso correcto de la secuencia de comandos
Sub Usage()
Dim strMessage
strMessage = "Sintaxis incorrecta. Debe ejecutar: " & vbCRLF & _
"cscript.exe//nologoSampleBIOSPwd.vbs<nombre_del_sistema>"&Chr(34)&_
"<contraseñaanterior>espacio<contraseñanueva>"&Chr(34)
WScript.Echo strMessage
End Sub)
NuevosvaloresdeconfiguracióndelBIOSenOMCI7.8
AcontinuaciónseenumeranlosvaloresdeconfiguracióndelBIOSrecientementeagregados:
l AdminSetupLockout
l Camera
l DRAMPrefetcher
l EnableInstantON
NOTA: AlgunosdelosvaloresdeconfiguracióndelBIOSqueaparecenacontinuaciónnosoncompatiblescontodoslossistemasDell.










