Users Guide
'*** and that all parameters were passed
'***
'***(PrüfenSie,obdierichtigenausführbarenDateizurAusführungdes
'*** Skripts verwendet wurdeund ob alle Parameter weitergegeben wurden)
If (LCase(Right(WScript.FullName, 11)) = "wscript.exe" ) Or _
(Wscript.Arguments.Count<1)Then
CallUsage()
WScript.Quit
End If
'*** Initialize variables (Variablen initialisieren)
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).
'***
'*** (Die Instanz der Dell_SMBIOSSettings-Klasse abrufen
'*** (es sollte nur 1 Instanz vorhanden sein).)
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")
'***
'***(DenWertfürWakeUpOnLannurdanneinstellen,wenn
'***ernichtschon'6'ist("FüralleNICsaktivieren"))
if strPropValue <> 6 then
'***Setthenewvalueforthepropertyandsavetheinstance
'***
'***(DenneuenWertfürdieEigenschaft
'***einstellenunddieInstanzspeichern)
objInstance.Properties_.Item(strPropName).Value=6
objInstance.Put_
'***Ifanyerrorsoccurred,lettheuserknow
'***
'***(DemBenutzerwirdmitgeteilt,obFehleraufgetretensind)
IfErr.Number<>0Then
WScript.Echo"EnablingWakeUpOnLanfailed."
EndIf
End If
'*** Sub used to display the correct usage of the script
'***
'*** (Sub verwendet, um die richtige Verwendung des Skripts anzuzeigen)
Sub Usage()
Dim strMessage
strMessage = "incorrect syntax. You should run: " & vbCRLF & _
"cscript.exe//nologoSampleWuOLEnable.vbs<Systemname>"
WScript.Echo strMessage
End Sub
Service-Tag-Nummer, Systemkennnummer und BIOS-Revision abrufen
'**********************************************************************
'*** 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>
'***
'*** (Name: SampleSystemSummary.vbs
'*** Zweck: Systemkennnummer, Service-Tag-Nummer und BIOS-Revision eines
'*** Dell OMCI-Clients anzeigen.
'*** Verwendung: cscript.exe //nologo SampleSystemSummary.vbs <Systemname>)
'***
'*** 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.
'***
'*** (Dieses Beispielskript ist lediglich ein bereitgestelltes
'*** Beispiel und ist weder getestet noch in irgendeiner Weise
'*** von Dell garantiert; Dell lehnt jeglicheHaftung in Verbindung
'***damitab.DellbietetkeinentechnischenSupportbezüglich
'***solcherSkriptean.WeitereInformationenüberWMI-Skripte
'*** finden Sie in der entsprechenden Microsoft-Dokumentation.)










