Users Guide

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_Configuration"
strKeyValue = "Configuration"
strPropName = "ForcePXEOnNextBoot"
'*** 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).)
Set objInstance = GetObject("WinMgmts:{impersonationLevel=impersonate}//" &_
strComputerName&"/"&strNameSpace&":"&strClassName&"="&_
Chr(34)&strKeyValue&Chr(34))
strPropValue = objInstance.Properties_.Item(strPropName).Value
'*** Set the new value for the property and save the instance, but only
'*** if the current value is not already 3 ('Enabled')
'***
'*** (Establece el nuevo valor para la propiedad y guarda la instancia,
'***perosólosielvaloractualnohallegadoa3('Activado'))
If strPropValue <> 3 Then
objInstance.Properties_.Item(strPropName).Value=3
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"SettingPXEonnextreboot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SampleForcePXE.vbs<systemname>"
WScript.Echo strMessage
End Sub
ActivacióndeEncendidoenLAN
'**********************************************************************
'*** Name: SampleWuOLEnable.vbs
'*** Purpose: To enable Wakeup On LAN on a Dell OMCI client.
'*** Usage: cscript.exe //nologo SampleWuOLEnable.vbs <systemname>
'***
'***
'*** (Nombre: SampleWuOLEnable.vbs
'*** Objetivo: Activar el encendido en LAN de un cliente Dell OMCI.
'*** Uso: cscript.exe //nologo SampleWuOLEnable.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(Variablesdedeclaración)
Dim strNameSpace
Dim strComputerName
Dim strClassName
Dim strKeyValue
Dim objInstance