Users Guide

NULL)
'*** Use only first instance to retrieve asset tag, service tag,
'***andBIOSversion(Usasólolaprimerainstanciapararecuperarla
'***etiquetadepropiedad,laetiquetadeservicioylaversióndelBIOS)
For Each objInstance in colInstances
strMessage="AssetTag:"
strMessage=strMessage&objInstance.Properties_.Item
("AssetTag").Value
strMessage=strMessage&vbCRLF&"ServiceTag:"
strMessage=strMessage&objInstance.Properties_.Item
("ServiceTag").Value
strMessage=strMessage&vbCRLF&"BIOSVersion:"
strMessage=strMessage&objInstance.Properties_.Item
("BIOSVersion").Value
ExitFor
Next
'*** Display the results (Muestra los resultados)
WScript.Echo strMessage
'*** Sub used to display the correct usage of the script
'*** (Subrutina para mostrar el uso correcto de la secuencia de comandos)
Sub Usage()
Dim strMessage
strMessage = "incorrect syntax. You should run: " & vbCRLF & _
"cscript.exe//nologoSampleSystemSummary.vbs<nombredelsistema>"
WScript.Echo strMessage
End Sub
CambiodecontraseñadelBIOS
'**********************************************************************
'*** Name: SampleBIOSPwd.vbs
'*** (Nombre: SampleBIOSPwd.vbs)
'*** Purpose: To change the BIOS password on a Dell OMCI client.
'***(Objetivo:CambiarlacontraseñadelBIOSenunclienteDellOMCI.)
'*** Usage: cscript.exe //nologo SampleBIOSPwd.vbs <systemname> "<old
'*** pwd> space <new pwd>"
'*** (Uso: cscript.exe //nologo SampleBIOSPwd.vbs <nombre del sistema>
'***"<contraseñaanterior>space<contraseñanueva>")
'***
'*** 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.
'*** (Esta secuencia de comandos de muestra se proporciona como ejemplo
'***solamenteynohasidoprobada,niestágarantizadadeningunamanera
'***porDell;Dellrechazacualquierresponsabilidadrelacionadaconésta.
'***Dellnoproporcionaasistenciatécnicaconrespectoaestetipode
'***secuenciasdecomandos.Paraobtenermásinformaciónsobrelas
'***secuenciasdecomandosdeWMI,consulteladocumentaciónde
'*** Microsoft sobre el tema.)
'**********************************************************************
'***Declarevariables(Declaracióndevariables)
Dim strNameSpace
Dim strComputerName
Dim strClassName
Dim strKeyValue
Dim objInstance
Dim strPropName
Dim strPwd
'*** Check that the right executable was used to run the script
'***andthatallparameterswerepassed(Verifiquequeseusó
'*** el archivo ejecutable correcto para ejecutar la secuencia de
'***comandosyquetodoslosparámetrospasaron)
Si (LCase(Right(WScript.FullName, 11)) <> "cscript.exe" ) O _
(Wscript.Arguments.Count<2)Entonces
CallUsage()
WScript.Quit
End If
'***Initializevariables(Inicializaciónde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).(Recuperalainstanciadelaclasedeconfiguración
'***Dell_Configurationclass[debeexistirsólo1instancia].)