Users Guide

'***Setthenewvalueforthepropertyandsavetheinstance
'***(Estableceelnuevovalorparalapropiedadyguardalainstancia)
objInstance.Properties_.Item(strPropName).Value=6
objInstance.Put_
'***'***Ifanyerrorsoccurred,lettheuserknow
'***(Avisaalusuariosiocurrealgúnerror)
IfErr.Number<>0Then
WScript.Echo"EnablingWakeUpOnLanfailed."
EndIf
End If
'*** Sub used to display the correct usage of the script
'*** (Subrutina utilizada para mostrar el uso correcto de la secuencia de comandos)
Sub Usage()
Dim strMessage
strMessage = "incorrect syntax. You should run: " & vbCRLF & _
"cscript.exe//nologoSampleWuOLEnable.vbs<nombredelsistema>"
WScript.Echo strMessage
End Sub
Recuperacióndelaetiquetadeservicio,laetiquetadepropiedadylarevisióndelBIOS
'**********************************************************************
'*** Name: SampleSystemSummary.vbs
'*** (Nombre: SampleSystemSummary.vbs)
'*** Purpose: To display asset tag, service tag, and BIOS revision of
'*** a Dell OMCI client.
'*** (Objetivo: Mostrar la etiqueta de propiedad, etiqueta de servicio y
'***versióndelBIOSdeunclienteDellOMCI.)
'*** Usage: cscript.exe //nologo SampleSystemSummary.vbs <systemname>
'*** (Uso: cscript.exe //nologo SampleSystemSummary.vbs <nombre del sistema>)
'***
'***
'*** 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.)
'**********************************************************************
Option Explicit
'***Declarevariables(Declaracióndevariables)
Dim strNameSpace
Dim strComputerName
Dim strClassName
Dim colInstances
Dim objInstance
Dim strWQLQuery
Dim strMessage
Dim strKeyName
'*** 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)
If (LCase(Right(WScript.FullName, 11)) = "wscript.exe" ) Or _
(Wscript.Arguments.Count<1)Then
CallUsage()
WScript.Quit
End If
'***Initializevariables(Inicializacióndevariables)
strNameSpace = "root/Dellomci"
strComputerName = WScript.Arguments(0)
strClassName = "Dell_SystemSummary"
strKeyName = "Name"
'*** WQL Query to retrieve instances of Dell_SystemSummary
'*** (Consulta de WQL para recuperar instancias del resumen del sistema Dell_SystemSummary)
strWQLQuery = "SELECT * FROM " & strClassName & " WHERE " & _
strKeyName&"="&Chr(34)&strComputerName&Chr(34)
'*** Retrieve instances of Dell_Configuration class (there should only
'***be1instance).(Recuperalasinstanciasdeclasedeconfiguración
'***Dell_Configuration[debeexistirsólo1instancia].)
Set colInstances = GetObject("WinMgmts:{impersonationLevel=impersonate}//"&_
strComputerName&"/"&strNameSpace).ExecQuery(strWQLQuery,"WQL",