Users Guide

Dim strPropName
Dim strPropValue
'*** Check that the right executable was used to run the script
'*** and that all parameters were passed
'***
'***(Verifiquequeseutilizó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(Variablesdeinicialización)
strNameSpace = "root/Dellomci"
strComputerName = WScript.Arguments(0)
strClassName = "Dell_SMBIOSSettings"
strKeyValue = "0"
strPropName = "WakeupOnLan"
'*** Retrieve the instance of Dell_SMBIOSSettings class (there should
'*** only be 1 instance).
'***
'***(RecuperalainstanciadeclasedeconfiguracióndeDell_SMBIOSSettings
'***(debeexistirsólo1instancia).)
Set objInstance = GetObject("WinMgmts:{impersonationLevel=impersonate}//" &_
strComputerName&"/"&strNameSpace&":"&strClassName&"="&_
Chr(34)&strKeyValue&Chr(34))
strPropValue = objInstance.Properties_.Item(strPropName).Value
'*** Set the value of WakeUpOnLan only if it is not already '6'
'*** ("Enable for all NICs")
'***
'***(EstableceelvalordeEncendidoenLANsólosinohallegadoa'6'
'*** ("Activado para todos los NIC"))
if strPropValue <> 6 then
'***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<systemname>"
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
'*** Purpose: To display asset tag, service tag, and BIOS revision of
'*** a Dell OMCI client.
'*** Usage: cscript.exe //nologo SampleSystemSummary.vbs <systemname>
'***
'*** (Nombre: SampleSystemSummary.vbs
'*** Objetivo: Mostrar la etiqueta de propiedad, etiqueta de servicio
'***yversióndelBIOSdeunclienteDellOMCI.
'*** 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