Dell 7.6 manual Sample Scripts and Bios Settings

Page 64

Dim strComputerName

Dim strClassName

Dim strKeyValue

Dim objInstance

Dim strPropName

Dim strPropValue

'*** Check that the right executable was used to run the script

'*** and that all parameters were passed If (LCase(Right(WScript.FullName, 11)) = "wscript.exe" ) Or _

(Wscript.Arguments.Count < 1) Then Call Usage()

WScript.Quit

End If

'*** Initialize variables 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). 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")

if strPropValue <> 6 then

64

Sample Scripts and BIOS Settings

Image 64
Contents Dell OpenManage Client Instrumentation Version User’s Guide June Contents Installing Dell OpenManage Sample Scripts and Bios Settings Glossary Index Introduction CIM OverviewWMI Overview Data Sources Used by OmciSmbios Omci ArchitecturePage CIM 2.6 Schema Support FeaturesDell LegacySelect 2.0 Support WMI Security Remote Boot Device SelectEvent Reporting Remote Wake-Up Configurability Whats NewRemote Shutdown WfM Version 2.0 ComplianceLatest Updates Supported Operating SystemsOther Resources Which Might Be Of Interest Other Dell Documents You Might NeedObtaining Technical Assistance Introduction Installing Dell OpenManage Client Instrumentation User Account Control in Windows Vista Local Installation Installing the ClientUninstalling the Client Click Install to begin the installationSilent Installation Installing the Client in the Silent ModePerforming a Complete Installation in Silent Mode Performing a Custom Installation in Silent ModeUpgrading the Client in Silent Mode Uninstalling the Client in Silent ModeAdministrative Installation Msiexec /i Network Location\omci.msi /qnInstalling Dell OpenManage Client Instrumentation Windows Management Instrumentation WMI SecurityRetrieving Dell Information With SMS #pragma namespace \\\\.\\Root\\cimv2 WMI Scripts Windows Management Instrumentation Windows Management Instrumentation Alerts OverviewASF Alerting WMI AlertingAlerts Unknown = Critical = Fatalnonrecoverable =Information = Lowest WMI severity level that Omci sends is Hard drives falls Below this threshold Omci 7.1 and later Critical Alerts Component Descriptions Smbios PCI CIM-IAP MOF2 MFL1 Remote Connection to WMI and Remote Bios Update TroubleshootingWakeup on LAN Troubleshooting Right click WMI Control and then click Properties Installation Problems WMI Sample Scripts Sample Scripts and Bios SettingsClear Chassis Intrusion Status Sample Scripts and Bios Settings Disable Desktop Messages for All Alerts Sample Scripts and Bios Settings Sample Scripts and Bios Settings Remote System Shutdown Sample Scripts and Bios Settings Remote System Restart Sample Scripts and Bios Settings Remote Bios Update Sample Scripts and Bios Settings Sample Scripts and Bios Settings Enabling PXE Boot on the Next Reboot Sample Scripts and Bios Settings Enabling Wakeup on LAN Sample Scripts and Bios Settings Retrieving Service Tag, Asset Tag, and Bios Revision Sample Scripts and Bios Settings Null Changing Bios Password Sample Scripts and Bios Settings Bios Settings Supported in Omci Sample Scripts and Bios Settings Sample Scripts and Bios Settings Satadipm Sample Scripts and Bios Settings Bios GlossaryASF CIMCLI CmosCOM DcomDLL DMIDmtf DOSOmcc MOFRAID Wbem SmartWDM WMI Index Smart Smbios Index Index