OMCI Sample Scripts - Systems Management - Wiki - Systems Management - Dell Community
Wikis - Title

OMCI Sample Scripts

Systems Management

Systems Management
Dell Systems Management Solutions: Dell OpenManage, iDRAC, Repository Manager, Microsoft SCCM, Chassis Managment Controller, and more

Systems Management - Wiki

OMCI Sample Scripts

Systems Management - Wiki

Feel free to test these scripts in your test environment, and modify to your needs for production. Refer to the OMCI page for links to the user guide, reference guide, and other OMCI documentation.

Sample VBScripts

The OMCI White Paper contains several example VBScripts:

  • Clear Chassis Intrusion alert
  • Disable Desktop Messages for Fan alerts
  • Disable Desktop Messages for All Alerts
  • Enable Trusted Platform Module
  • Get/Set Boot Order
  • Change/Set the BIOS Admin Password
  • Change/Set the BIOS Boot Password

The OMCI Documentation (User Guide and Reference Guide) contains the following VBScript examples:

  • Clear Chassis Intrusion Status
  • Disable Desktop Messages for All Alerts
  • Remote System Shutdown
  • Remote System Restart
  • Remote BIOS Update
  • Enabling PXE Boot on the Next Reboot
  • Enabling Wakeup on LAN
  • Retrieving Service Tag, Asset Tag, and BIOS Revision
  • Changing BIOS Password

OMCI 8.0 Sample Scripts

OMCI 8.x Sample Scripts (PowerShell)

 

 


Read the WhitePaper and Download Sample Scripts - How to Enable Trusted Platform Module (TPM) on Dell Business Client Systems

Sample PowerShell Scripts for OMCI 7.x and earlier

The following table contains one-line script examples using the Microsoft® Windows® PowerShell™ command-line shell.

PowerShell Command Description
gwmi -namespace root\dellomci -list Queries the local system for all classes in the root\dellomci namespace
gwmi -namespace root\dellomci -list -computer COMPUTER1 Queries COMPUTER1 for all classes in the root\dellomci namespace
gwmi -namespace root\dellomci dell_chassis Displays all properties and values of the Dell_Chassis class
(gwmi -namespace root\dellomci dell_SMBIOSSEttings).ChassisIntrusionStatus Display Chassis Intrusion Status for the local system
(gwmi -namespace root\dellomci dell_SMBIOSSEttings) | foreach{$_.ChassisIntrusionStatus=5; $_.put()} Clear the Chassis Intrusion Status
gwmi -namespace root\dellomci Dell_IndicationStaticValues | foreach {$_.MaxDisplayNotifications=0 ; $_.Put()} Disable all msgbox alerts for Dell OMCI on client
gwmi -namespace root\dellomci Dell_Configuration | foreach {$_.ForcePXEonNextBoot=3; $_.Put()} Force Boot to PXE on next restart
gwmi -namespace root\dellomci Dell_SMBIOSSEttings | foreach {$_.WakeUpOnLAN=6; $_.WakeupOnLANMethod=3; $_.Put()} Enable Wake-On-LAN
gwmi -namespace root\dellomci dell_systemsummary Display Summary information (BIOS Date, Version, Asset Tag, Service Tag, Model Information, and so on)
gwmi -namespace root\dellomci Dell_BootDeviceSequence | ft BootOrder, BootDeviceName Display a table of boot order
((gwmi -namespace root\dellomci Dell_BootDeviceSequence) | where {$_.BootDeviceName -eq "Onboard or USB CD-ROM Drive"} ) | foreach {$_.BootOrder=1 ; $_.Put()} Set the CD-ROM Drive to #1 position of boot sequence.

Sample Powershell Scripts for OMCI 8.x and newer

Remember to use an elevated command window.

Powershell Commands Description
gwmi -namespace root\dcim\sysman -list Queries the local system for all classes in the root\dcim\sysman namespace
gwmi -namespace root\dcim\sysman -list -computer COMPUTER1 Queries COMPUTER1 for all classes in the root\dcim\sysman namespace
gwmi -namespace root\dcim\sysman dcim_chassis Displays all properties and values of the dcim_chassis class
gwmi DCIM_BIOSEnumeration -namespace root\dcim\sysman -filter "AttributeName='Wake On LAN'" Displays the Wake On Lan setting
(gwmi DCIM_BIOSService -namespace root\dcim\sysman).SetBIOSAttributes($null,$null,"Wake On LAN","4") Sets the Wake On LAN setting to 4 for systems without a BIOS password
Possible values are:
1 - Disable
2 - Add-in
3 - On board
4 - LAN
5 - PXE boot enable
6 - LAN or WLAN
7 - WLAN only
(gwmi DCIM_BIOSService -namespace root\dcim\sysman).SetBIOSAttributes($null,$null,"Wake On LAN","4","password") Sets the Wake On LAN setting to 4 for systems that have a BIOS password
Possible values are:
1 - Disable
2 - Add-in
3 - On board
4 - LAN
5 - PXE boot enable
6 - LAN or WLAN
7 - WLAN only
gwmi dcim_chassis -namespace root\dcim\sysman tag Displays the Service Tag
gwmi dcim_chassis -namespace root\dcim\sysman ElementName Displays the Asset Tag
gwmi dcim_chassis -namespace root\dcim\sysman PropertyOwnershipTag Displays the Property Ownership Tag
(gwmi DCIM_Chassis -namespace root\dcim\sysman).ChangeAssetTag("newAstg") Sets the Asset Tag
(gwmi DCIM_Chassis -namespace root\dcim\sysman).ChangePropertyOwnershipTag("PropOtag") Sets the Property Ownership Tag



Frequently Asked Questions


Q: How can I browse WMI using a GUI?
A: You can use WMI Administrative Tools, PowerShell ScriptOMatic, or PowerShell WMI Explorer.

Q: I'm having trouble querying OMCI information through a GUI, VBScript, and PowerShell.
A: Check Permissions; you may need to Run as Administrator to have sufficient access. Also, ensure that OMCI is installed (Check Add/Remove Programs).

Links


0
Comments
  • I can not get the wake on lan scirpt to work for remote computers.  How do I get:

    (gwmi DCIM_BIOSService -namespace root\dcim\sysman).SetBIOSAttributes($null,$null,"Wake On LAN","4")

    to work on a remote computer?