This deployment guide is developed for IT professionals to assist with the unique challenges that ® they encounter. If you have suggestions or comments, communicate with your Lenovo authorized representative. To learn more about the technologies that can help you lower the total cost of ownership and to check for periodic updates to this guide, visit the following Web site: http://www.lenovo.com/support...
Page 8
Lenovo BIOS Setup using Windows Management Instrumentation Deployment Guide...
The Lenovo BIOS WMI interface provides a simplified way to change these settings. Lenovo has developed a BIOS interface that can be manipulated through Windows Management Instrumentation (WMI). The Lenovo BIOS WMI interface enables IT administrators to make queries on current BIOS settings, restore settings to their factory defaults, change single settings, reset or change passwords, and modify the boot order either at client computers or remotely.
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. • Namespace: "\root\WMI" • Base Class: "Lenovo_BIOSElement" • Interface details (see Table 1 “Interface Details” on page 3 ) Table 1.
Some BIOS settings are dependent on the presence of certain hardware features. Settings might vary on different computers. Notes: 1. BIOS settings and values are case sensitive. 2. The security-related options are not changed even if the “load default” is requested. Lenovo BIOS Setup using Windows Management Instrumentation Deployment Guide...
Page 13
The numbers listed in the Supported products column in Table 4 “List of available BIOS settings” on page 5 mean the following: 1 - R400, R500, T400, T500, W500, X200, X200s, X200 Tablet 2 - X301 3 - W700, W700ds, W701 4 - T400s 5 - X201, X201s, T410, T410s, T510, W510 6 - T420, T420i, T420s, T420si, T520, T520i, W520, X220, X220i, X220 Tablet, X220i Tablet...
Page 15
Table 4. List of available BIOS settings (continued) Item name Selection name Load default? Supported products BootDisplayDevice “LCD”, “VGA”, 1, 2, 3, 4 “DisplayPort”, “DVI” “LCD”, “VGA”, “Digital”, 5, 6, 7, 8, 9, 10, 11, 12 “Digital1onDock”, “Digital2onDock” “LCD”, “Digital” GraphicsDevice “IntegratedGfx”, 1, 5, 6, 7, 8...
Page 16
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, SecurityChip “Disable” 11, 12 PhysicalPresenceForTpmProvision “Enable”, “Disable” 8, 9, 10, 11, 12 Note: It is not supported to set this feature to “Disable” because of security reason. Lenovo BIOS Setup using Windows Management Instrumentation Deployment Guide...
Page 17
Table 4. List of available BIOS settings (continued) Item name Selection name Load default? Supported products PhysicalPresenceForTpmClear “Enable”, “Disable” 8, 9, 10, 11, 12 Note: It is not supported to set this feature to “Disable” because of security reason. TXTFeature “Enable”, “Disable”...
(HDP). If you want to change BIOS settings and POP or HDP, you must reboot the system after changing one of them. • A password cannot be set using this method when one does not already exist. Passwords can only be updated or cleared. Lenovo BIOS Setup using Windows Management Instrumentation Deployment Guide...
The scripts in the ZIP file can be used as-is on Windows XP, Windows Vista, or Windows 7 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 and Windows 7, you must run the scripts from an administrator command prompt.
Set colItems = objWMIService.ExecQuery("Select * from Lenovo_SetBiosSetting") 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 Lenovo BIOS Setup using Windows Management Instrumentation Deployment Guide...
Set colItems = objWMIService.ExecQuery("Select * from Lenovo_SaveBiosSettings") 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.
Use the sample scripts in the ZIP file as templates to set a single BIOS setting on a remote computer. Syntax: cscript.exe SetConfigRemote.vbs [Item] [Value] [Hostname]Example: cscript.exe SetConfigRemote.vbs WakeOnLAN Disable mattdev-c5 ' Set specific BIOS Setting On Error Resume Next Dim colItems If WScript.Arguments.Count <> 3 Then Lenovo BIOS Setup using Windows Management Instrumentation Deployment Guide...
Example: cscript.exe SetSupervisorPassword.vbs oldpass newpass ascii,us ' Update Admnistrator Password On Error Resume Next Dim colItems If WScript.Arguments.Count <> 3 Then WScript.Echo "SetSupervisorPassword.vbs [old Password] [new Password] [encoding]" WScript.Quit End If Lenovo BIOS Setup using Windows Management Instrumentation 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 Setup using Windows Management Instrumentation Deployment Guide...
Lenovo representative for information on the products and services currently available in your area. Any reference to an Lenovo product, program, or service is not intended to state or imply that only that Lenovo product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any Lenovo intellectual property right may be used instead.
Trademarks The following terms are trademarks of Lenovo in the United States, other countries, or both: Lenovo The Lenovo logo ThinkPad ThinkVantage Microsoft, Windows, Windows Vista, Windows 7, and Active Directory are trademarks of the Microsoft group of companies. Other company, product, or service names may be trademarks or service marks of others.