The purpose of this guide is to explain how to modify BIOS passwords, settings, and boot order using Windows Management Instrumentation (WMI) through the Lenovo client-management interface. This guide is intended for skilled IT administrators who are familiar with configuring BIOS settings on computers in their organizations.
Page 8
Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide...
The Lenovo BIOS WMI interface extends the capabilities of WMI to allow management of BIOS settings. The following illustration shows how WMI can be used to access Lenovo BIOS settings. WMI uses Windows Script host (WSH) to interpret scripts. You can write your scripts in either Windows Visual Basic Scripting Edition (VBScript) or JavaScript.
Supported computers BIOS setup through WMI is supported on the following new ThinkPad products only: v R400 v R500 v T500 v W500 v X200 v X200s v X200 Tablet v X301 Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide...
Chapter 2. Script classes and parameters This chapter contains WMI implementation details for configuring BIOS settings. Configuring BIOS settings The following interface details can be used to access Lenovo BIOS settings. v Namespace: "\root\WMI" v Base Class: "Lenovo_BIOSElement" v Interface details (see Table 1) Table 1.
HDP, you must reboot the system after changing one of them. v A password cannot be set using this method when one does not already exist. Passwords can only be updated or cleared. Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide...
The scripts in the ZIP file can be used as-is on Windows XP or Windows Vista to modify BIOS settings on your Lenovo computer. The scripts can be executed on a command prompt using the cscript.exe utility. On Windows Vista, you must run the scripts from an administrator command prompt.
For Each objItem in colItems ObjItem.SetBiosSetting strRequest, strReturn Next WScript.Echo strRequest WScript.Echo " SetBiosSetting: " + strReturn If strReturn <> "Success" Then WScript.Quit End If Set colItems = objWMIService.ExecQuery("Select * from Lenovo_SaveBiosSettings") Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide...
strReturn = "error" For Each objItem in colItems ObjItem.SaveBiosSettings ";", strReturn Next WScript.Echo strRequest WScript.Echo " SaveBiosSettings: " + strReturn Set a single BIOS setting on the local computer if a supervisor password exists Use the sample scripts in the ZIP file as templates to set a single BIOS setting on the local computer if a supervisor password exists.
For Each objItem in colItems ObjItem.SetBiosSetting strRequest, strReturn Next WScript.Echo strRequest WScript.Echo " SetBiosSetting: " + strReturn If strReturn <> "Success" Then WScript.Quit End If Set colItems = objWMIService.ExecQuery("Select * from Lenovo_SaveBiosSettings") strReturn = "error" For Each objItem in colItems ObjItem.SaveBiosSettings ";", strReturn Next WScript.Echo strRequest...
Use the sample scripts in the ZIP file as templates to set the supervisor password on a remote computer when a supervisor password exists. Note: You cannot set a supervisor password if one does not already exist. Syntax: cscript.exe SetSupervisorPasswordRemote.vbs [Old Password] [New Password] [encoding] [Hostname] Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide...
Page 27
Example: cscript.exe SetSupervisorPasswordRemote.vbs oldpass newpass ascii,us mattdev-c5 ’ ’ Update Admnistrator Password ’ On Error Resume Next Dim colItems If WScript.Arguments.Count <> 4 Then WScript.Echo "SetSupervisorPasswordRemote.vbs [old Password] [new Password] [encoding] [hostname]" WScript.Quit End If; strRequest = "pap," + WScript.Arguments(0) + "," + WScript.Arguments(1) + ","...
Page 28
Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide...
Show a particular BIOS setting Use the sample scripts in the ZIP file as templates to display the current value of a specified setting. Replace "AlwaysOnUSB" with the name of the setting to be queried. Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide...
Actual results may vary. Users of this document should verify the applicable data for their specific environment. Trademarks The following terms are trademarks of Lenovo in the United States, other countries, or both: Lenovo the Lenovo logo...