BIOS Windows Management Instrumentation Interface Deployment Guide
Page 5
......17 Appendix A. Script Classes and Parameter 3 Configuring BIOS settings ...3 Return types ...5 Password Authentication ...5 Available BIOS setting names ...6 Chapter 3. Notices ...27 Trademarks ...28 @Copyright Lenovo 2012 I Overview ...1 Using Windows Management Instrumentation 1 Key benefits ...1 Function...2 Environment ...2 Interface...2 Supported computers ...2 Chapter 2. Typical Usage ...13 Listing current BIOS settings...13 Changing BIOS settings ...13 Changing the boot order ...13...
......17 Appendix A. Script Classes and Parameter 3 Configuring BIOS settings ...3 Return types ...5 Password Authentication ...5 Available BIOS setting names ...6 Chapter 3. Notices ...27 Trademarks ...28 @Copyright Lenovo 2012 I Overview ...1 Using Windows Management Instrumentation 1 Key benefits ...1 Function...2 Environment ...2 Interface...2 Supported computers ...2 Chapter 2. Typical Usage ...13 Listing current BIOS settings...13 Changing BIOS settings ...13 Changing the boot order ...13...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 7
... periodic updates to this deployment guide as well as Visual Basic sample scripts to use when configuring BIOS settings. This guide is to explain how to assist with your Lenovo® authorized representative. To learn more about the technologies that can help you have suggestions or ...comments, communicate with the unique challenges that contains this guide, visit the following Web site: www.lenovo.com/support @Copyright Lenovo 2012 III This deployment guide is provided in their organizations. This guide is developed for IT professionals to modify...
... periodic updates to this deployment guide as well as Visual Basic sample scripts to use when configuring BIOS settings. This guide is to explain how to assist with your Lenovo® authorized representative. To learn more about the technologies that can help you have suggestions or ...comments, communicate with the unique challenges that contains this guide, visit the following Web site: www.lenovo.com/support @Copyright Lenovo 2012 III This deployment guide is provided in their organizations. This guide is developed for IT professionals to modify...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 9
... WMI is provided as query-based information retrieval and event notification, which include hardware settings, and the boot order. The Lenovo BIOS WMI interface extends the capabilities of WMI to allow management of functions, such as a standard feature in either at client ... Edition (VBScript) or JavaScript. Chapter 1. WMI uses Windows Script host (WSH) to manage client computer BIOS settings, which enables users to access Lenovo BIOS settings. The Lenovo BIOS WMI interface provides a simplified way to their factory defaults, change single settings, reset or change these settings...
... WMI is provided as query-based information retrieval and event notification, which include hardware settings, and the boot order. The Lenovo BIOS WMI interface extends the capabilities of WMI to allow management of functions, such as a standard feature in either at client ... Edition (VBScript) or JavaScript. Chapter 1. WMI uses Windows Script host (WSH) to manage client computer BIOS settings, which enables users to access Lenovo BIOS settings. The Lenovo BIOS WMI interface provides a simplified way to their factory defaults, change single settings, reset or change these settings...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 10
...;Easy to adopt for various management servers ·Replaces current SMI interface ·Common interface for different products Supported computers BIOS setup through WMI descripted in this document is supported on the following new Thinkcentre/Thinkstation products only: ·Thinkcentre M92/M92p/M82 ·Thinkstation E31 Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 2
...;Easy to adopt for various management servers ·Replaces current SMI interface ·Common interface for different products Supported computers BIOS setup through WMI descripted in this document is supported on the following new Thinkcentre/Thinkstation products only: ·Thinkcentre M92/M92p/M82 ·Thinkstation E31 Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 2
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 11
Interface Details @Copyright Lenovo 2012 3 Chapter 2. 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) Table 1. Script Classes and Parameter This chapter contains WMI implementation details for configuring BIOS settings.
Interface Details @Copyright Lenovo 2012 3 Chapter 2. 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) Table 1. Script Classes and Parameter This chapter contains WMI implementation details for configuring BIOS settings.
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 12
... SuportedKeyboard:7 SupportedEncodings:3 Port0HardDiskPasswordS tate:00 Port1HardDiskPasswordS tate:00 Port2HardDiskPasswordS tate:00 Port3HardDiskPasswordS tate:00 Port4HardDiskPasswordS tate:00 Port5HardDiskPasswordS tate:00 "pop,oldpop, newpop,ascii,us;" Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 4
... SuportedKeyboard:7 SupportedEncodings:3 Port0HardDiskPasswordS tate:00 Port1HardDiskPasswordS tate:00 Port2HardDiskPasswordS tate:00 Port3HardDiskPasswordS tate:00 Port4HardDiskPasswordS tate:00 Port5HardDiskPasswordS tate:00 "pop,oldpop, newpop,ascii,us;" Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 4
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 13
..., Spanish-European, Spanish-Latin American, Swiss, Turkish ·″fr″ - See Appendix A, "Sample Visual Basic scripts for configuring BIOS settings,"on page 19 for a listing of the following return types after making changes to be committed. See Table 4 on this system....try again Password Authentication If an Administrator password is not valid. Access Denied The change any BIOS settings. Table 3. German, Czech, Slovak, Slovenian @Copyright Lenovo 2012 5 System Busy BIOS changes have already been made due to an authentication problem. dLang;" Notes: 1. Return ...
..., Spanish-European, Spanish-Latin American, Swiss, Turkish ·″fr″ - See Appendix A, "Sample Visual Basic scripts for configuring BIOS settings,"on page 19 for a listing of the following return types after making changes to be committed. See Table 4 on this system....try again Password Authentication If an Administrator password is not valid. Access Denied The change any BIOS settings. Table 3. German, Czech, Slovak, Slovenian @Copyright Lenovo 2012 5 System Busy BIOS changes have already been made due to an authentication problem. dLang;" Notes: 1. Return ...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 14
... and values are not changed even if the "load default" is requested. Available BIOS setting names Some BIOS settings are dependent on different computers. Settings might vary on the presence of available BIOS settings Item Name Option Value Related item Serial Port1 Address "Disabled","3F8/IRQ4","2F8/IRQ3... N USB Support "Enabled", "Disabled" N USB Legacy Support "Enabled", "Disabled" USB Support Front USB Ports "Enabled", "Disabled" USB Support Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 6 List of certain hardware features.
... and values are not changed even if the "load default" is requested. Available BIOS setting names Some BIOS settings are dependent on different computers. Settings might vary on the presence of available BIOS settings Item Name Option Value Related item Serial Port1 Address "Disabled","3F8/IRQ4","2F8/IRQ3... N USB Support "Enabled", "Disabled" N USB Legacy Support "Enabled", "Disabled" USB Support Front USB Ports "Enabled", "Disabled" USB Support Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 6 List of certain hardware features.
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 16
... Video Select Active Video Select Active Video N N Onboard Ethernet Controller N Core Multi-Processing "Enabled", "Disabled" N Hyper Threading Technology "Disabled", "Enabled" N Intel (R)Virtualization Technology "Disabled", "Enabled" N Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 8
... Video Select Active Video Select Active Video N N Onboard Ethernet Controller N Core Multi-Processing "Enabled", "Disabled" N Hyper Threading Technology "Disabled", "Enabled" N Intel (R)Virtualization Technology "Disabled", "Enabled" N Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 8
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 21
... you want to the desired value using the @Copyright Lenovo 2012 13 Change the BIOS setting to change using the Lenovo_BiosSetting class (see "List all BIOS settings on the local computer" on page 20 and "List all BIOS settings on a remote computer" on page 6 for sample scripts). 2. ...be changed through WMI on a specific computer, use the Lenovo_SaveBiosSetting class to which the setting will take effect. Changing the boot order To change a BIOS setting, complete the following steps: 1. See Table 4 on page 6 for a list of available values for sample scripts). Note: See Table 4...
... you want to the desired value using the @Copyright Lenovo 2012 13 Change the BIOS setting to change using the Lenovo_BiosSetting class (see "List all BIOS settings on the local computer" on page 20 and "List all BIOS settings on a remote computer" on page 6 for sample scripts). 2. ...be changed through WMI on a specific computer, use the Lenovo_SaveBiosSetting class to which the setting will take effect. Changing the boot order To change a BIOS setting, complete the following steps: 1. See Table 4 on page 6 for a list of available values for sample scripts). Note: See Table 4...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 22
...to save the settings (see "List all BIOS settings on the local computer" on page 20 and "List all BIOS settings on the remote computer" on page 22for sample scripts). 2. German, Czech, Slovak, Slovenian Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for ...Belgian ·″gr″ - To set a new boot order, use the Lenovo_SetBiosSetting class, then use the Lenovo_SaveBiosSettings class to save the BIOS changes (see "Set a Administrator password on the local computer when a Administrator password exists" on page 20 and "Set a Administrator password ...
...to save the settings (see "List all BIOS settings on the local computer" on page 20 and "List all BIOS settings on the remote computer" on page 22for sample scripts). 2. German, Czech, Slovak, Slovenian Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for ...Belgian ·″gr″ - To set a new boot order, use the Lenovo_SetBiosSetting class, then use the Lenovo_SaveBiosSettings class to save the BIOS changes (see "Set a Administrator password on the local computer when a Administrator password exists" on page 20 and "Set a Administrator password ...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 23
If you want to batch update BIOS settings, make sure that the related item of them. ·A password cannot be set using this method before there ...will be hidden and cannot be updated through WMI. Passwords can only be changed simultaneously during one power cycle. Please reference Table 4 for BIOS setup: · Administrator password, POP and HDP cannot be updated or cleared. ·When users try to change these settings, you ...is in correct state, because once one . Limitations The following WMI limitations exist for detail relationship between items. @Copyright Lenovo 2012 15
If you want to batch update BIOS settings, make sure that the related item of them. ·A password cannot be set using this method before there ...will be hidden and cannot be updated through WMI. Passwords can only be changed simultaneously during one power cycle. Please reference Table 4 for BIOS setup: · Administrator password, POP and HDP cannot be updated or cleared. ·When users try to change these settings, you ...is in correct state, because once one . Limitations The following WMI limitations exist for detail relationship between items. @Copyright Lenovo 2012 15
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 25
.... Chapter 4. Set an authentication level of ″impersonate″ 2. Set an impersonation level of ″pktPrivacy″ See Appendix A, "Sample Visual Basic scripts for configuring BIOS settings," on page 19 for encryption. @Copyright Lenovo 2012 17
.... Chapter 4. Set an authentication level of ″impersonate″ 2. Set an impersonation level of ″pktPrivacy″ See Appendix A, "Sample Visual Basic scripts for configuring BIOS settings," on page 19 for encryption. @Copyright Lenovo 2012 17
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 27
...End If Set colItems = objWMIService.ExecQuery("Select * from an administrator command prompt. Note: The scripts in this appendix are for configuring BIOS settings The Visual Basic command line scripts in the ZIP file are examples that symbol ";" is on Windows XP, Windows Vista or... Windows 7 to modify BIOS settings on your Lenovo computer. To copy and paste scripts, use the scripts in colItems ObjItem.SaveBiosSettings ";", strReturn Next WScript.Echo " SaveBiosSettings: " + strReturn @Copyright Lenovo 2012 19 Pay attention to restore default settings on a...
...End If Set colItems = objWMIService.ExecQuery("Select * from an administrator command prompt. Note: The scripts in this appendix are for configuring BIOS settings The Visual Basic command line scripts in the ZIP file are examples that symbol ";" is on Windows XP, Windows Vista or... Windows 7 to modify BIOS settings on your Lenovo computer. To copy and paste scripts, use the scripts in colItems ObjItem.SaveBiosSettings ";", strReturn Next WScript.Echo " SaveBiosSettings: " + strReturn @Copyright Lenovo 2012 19 Pay attention to restore default settings on a...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 28
...") For Each objItem in colItems ObjItem.SetBiosSetting strRequest, strReturn Next WScript.Echo strRequest Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 20 List all BIOS settings on the local computer Use the sample scripts in the ZIP file as templates...needed . Syntax: cscript.exe SetConfig.vbs [Item] [Value] Example: cscript.exe SetConfig.vbs "Wake Up on LAN" Disabled ' ' Set specific BIOS Setting ' On Error Resume Next Dim colItems If WScript.Arguments.Count < > 2 Then WScript.Echo "SetConfig.vbs [setting] [value]" WScript.Quit...
...") For Each objItem in colItems ObjItem.SetBiosSetting strRequest, strReturn Next WScript.Echo strRequest Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 20 List all BIOS settings on the local computer Use the sample scripts in the ZIP file as templates...needed . Syntax: cscript.exe SetConfig.vbs [Item] [Value] Example: cscript.exe SetConfig.vbs "Wake Up on LAN" Disabled ' ' Set specific BIOS Setting ' On Error Resume Next Dim colItems If WScript.Arguments.Count < > 2 Then WScript.Echo "SetConfig.vbs [setting] [value]" WScript.Quit...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 29
... ";", strReturn Next WScript.Echo strRequest WScript.Echo " SaveBiosSettings: " + strReturn Set a single BIOS setting on the local computer. Syntax: cscript.exe SetConfigPassword.vbs [Item] [Value] [Password+...exe SetConfigPassword.vbs "Wake Up on LAN" Disabled "pass,ascii,us" ' ' Set specific BIOS Setting ' On Error Resume Next Dim colItems If WScript.Arguments.Count < > 3 Then ..."," + WScript.Arguments(1) + ";" strComputer = "LOCALHOST" ' Change as templates to set a single BIOS setting on the local computer if a Administrator password exists Use the sample scripts in the ZIP file as...
... ";", strReturn Next WScript.Echo strRequest WScript.Echo " SaveBiosSettings: " + strReturn Set a single BIOS setting on the local computer. Syntax: cscript.exe SetConfigPassword.vbs [Item] [Value] [Password+...exe SetConfigPassword.vbs "Wake Up on LAN" Disabled "pass,ascii,us" ' ' Set specific BIOS Setting ' On Error Resume Next Dim colItems If WScript.Arguments.Count < > 3 Then ..."," + WScript.Arguments(1) + ";" strComputer = "LOCALHOST" ' Change as templates to set a single BIOS setting on the local computer if a Administrator password exists Use the sample scripts in the ZIP file as...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 30
...ListAllRemote.vbs mattdev-c5 ' ' List all BIOS settings ' On Error Resume Next Dim colItems ... If Next Set a single BIOS setting on a remote computer Use the sample scripts in the ZIP file as templates to list all BIOS settings on a remote computer Use... the sample scripts in the ZIP file as templates to set a single BIOS setting on a...Arguments(2)+";", strReturn Next WScript.Echo strRequest WScript.Echo " SaveBiosSettings: " + strReturn List all BIOS settings and values on a remote computer. Syntax: cscript.exe SetConfigRemote.vbs [Item] [...
...ListAllRemote.vbs mattdev-c5 ' ' List all BIOS settings ' On Error Resume Next Dim colItems ... If Next Set a single BIOS setting on a remote computer Use the sample scripts in the ZIP file as templates to list all BIOS settings on a remote computer Use... the sample scripts in the ZIP file as templates to set a single BIOS setting on a...Arguments(2)+";", strReturn Next WScript.Echo strRequest WScript.Echo " SaveBiosSettings: " + strReturn List all BIOS settings and values on a remote computer. Syntax: cscript.exe SetConfigRemote.vbs [Item] [...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 31
...colItems ObjItem.SaveBiosSettings ";", Next strReturn WScript.Echo strRequest WScript.Echo " SaveBiosSettings: " + strReturn Set a single BIOS setting on a remote computer when a Administrator password exists Use the sample scripts in the ZIP file as templates to set a single...pass,ascii,us" mattdev-c5 ' ' Set specific BIOS Setting ' On Error Resume Next Dim colItems If WScript.Arguments.Count < > 4 Then WScript.Echo "SetConfigPasswordRemote.vbs [password+encoding] [hostname]" WScript.Quit [Item] [value] @Copyright Lenovo 2012 23 Syntax: cscript.exe SetConfigPasswordRemote.vbs [Item]...
...colItems ObjItem.SaveBiosSettings ";", Next strReturn WScript.Echo strRequest WScript.Echo " SaveBiosSettings: " + strReturn Set a single BIOS setting on a remote computer when a Administrator password exists Use the sample scripts in the ZIP file as templates to set a single...pass,ascii,us" mattdev-c5 ' ' Set specific BIOS Setting ' On Error Resume Next Dim colItems If WScript.Arguments.Count < > 4 Then WScript.Echo "SetConfigPasswordRemote.vbs [password+encoding] [hostname]" WScript.Quit [Item] [value] @Copyright Lenovo 2012 23 Syntax: cscript.exe SetConfigPasswordRemote.vbs [Item]...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 32
... on the local computer when a Administrator password exists Use the sample scripts in the ZIP file as needed Set objWMIService = GetObject("WinMgmts:" _ Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 24 End If strRequest = WScript.Arguments(0) + "," + WScript.Arguments(1) + ";" strComputer = WScript.Arguments(3) Set objWMIService = GetObject("WinMgmts:" _ &"{ImpersonationLevel=Impersonate," _ &"...
... on the local computer when a Administrator password exists Use the sample scripts in the ZIP file as needed Set objWMIService = GetObject("WinMgmts:" _ Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 24 End If strRequest = WScript.Arguments(0) + "," + WScript.Arguments(1) + ";" strComputer = WScript.Arguments(3) Set objWMIService = GetObject("WinMgmts:" _ &"{ImpersonationLevel=Impersonate," _ &"...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 33
... strRequest, strReturn Next WScript.Echo strRequest WScript.Echo " SetBiosPassword: " + strReturn Set a Administrator password on a remote computer. Note: You cannot set a single BIOS setting on a remote computer when a Administrator password exists Use the sample scripts in the ZIP file as needed Set objWMIService = GetObject("WinMgmts:" _ &"{ImpersonationLevel=Impersonate,"...") strReturn = "error" For Each objItem in colItems ObjItem.SetBiosPassword strRequest, strReturn Next WScript.Echo strRequest WScript.Echo " SetBiosPassword: " + strReturn @Copyright Lenovo 2012 25
... strRequest, strReturn Next WScript.Echo strRequest WScript.Echo " SetBiosPassword: " + strReturn Set a Administrator password on a remote computer. Note: You cannot set a single BIOS setting on a remote computer when a Administrator password exists Use the sample scripts in the ZIP file as needed Set objWMIService = GetObject("WinMgmts:" _ &"{ImpersonationLevel=Impersonate,"...") strReturn = "error" For Each objItem in colItems ObjItem.SetBiosPassword strRequest, strReturn Next WScript.Echo strRequest WScript.Echo " SetBiosPassword: " + strReturn @Copyright Lenovo 2012 25