Skip to content

Scripting Samples#

This page will provide scripts and MOF files related to managing Lenovo PC's.

Warning

These sample scripts are not supported under any Lenovo standard support program or service. The sample scripts are provided AS IS without warranty of any kind. Lenovo further disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample scripts and documentation remains with you. In no event shall Lenovo, its authors, or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample scripts or documentation, even if Lenovo has been advised of the possibility of such damages.

Solution Description
MOF Files This folder in the library contains MOF files that can be used to extend the hardware inventory of Configuration Manager to collect data from custom WMI classes.
  • Odometer: Represents the metrics collected from supported systems showing data such as CPU Uptime, Accelerometer Shock events, Thermal events, etc.
  • Lenovo Updates: Collects the updates history as stored by Lenovo System Update, Thin Installer, or Commercial Vantage
  • Dock Manager: Gathers vital details about attached docks and the devices connected to them.
Odometer This script collects and iterprets the raw Odometer data and stores it in a custom WMI class. A MOF file for this custom class is provided in the mof folder of the Library. See more details on the Think Deploy Blog
Secure Wipe This script leverages a WMI method supported by some Lenovo products that performs a secure wipe of the drive in the system. Use carefully! See more details on the Think Deploy Blog