BIOS Windows Management Instrumentation Interface Deployment Guide
Page 5
... Chapter 2. Sample Visual Basic scripts for configuring BIOS settings 17 Restore default settings ...17 List all BIOS settings on the local computer 18 Set a single BIOS setting on the local computer 18 Set a single BIOS setting on the local computer if a Administrator ...a Administrator password exists 23 Appendix B. Security...15 Appendix A. Notices ...25 Trademarks ...26 @Copyright Lenovo 2011 I Typical Usage ...11 Listing current BIOS settings...11 Changing BIOS settings ...11 Changing the boot order ...11 Restoring default settings ...12 Changing an existing hardware password...
... Chapter 2. Sample Visual Basic scripts for configuring BIOS settings 17 Restore default settings ...17 List all BIOS settings on the local computer 18 Set a single BIOS setting on the local computer 18 Set a single BIOS setting on the local computer if a Administrator ...a Administrator password exists 23 Appendix B. Security...15 Appendix A. Notices ...25 Trademarks ...26 @Copyright Lenovo 2011 I Typical Usage ...11 Listing current BIOS settings...11 Changing BIOS settings ...11 Changing the boot order ...11 Restoring default settings ...12 Changing an existing hardware password...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 7
... as well as Visual Basic sample scripts to use when configuring BIOS settings. This deployment guide is to explain how to modify BIOS settings, boot order using Windows Management Instrumentation (WMI) through the Lenovo client-management interface. This guide is provided in their organizations. ... challenges that contains this guide, visit the following Web site: www.lenovo.com/support @Copyright Lenovo 2011 III Preface The purpose of ownership and to check for IT professionals to assist with configuring BIOS settings on computers in a ZIP file package that they encounter.
... as well as Visual Basic sample scripts to use when configuring BIOS settings. This deployment guide is to explain how to modify BIOS settings, boot order using Windows Management Instrumentation (WMI) through the Lenovo client-management interface. This guide is provided in their organizations. ... challenges that contains this guide, visit the following Web site: www.lenovo.com/support @Copyright Lenovo 2011 III Preface The purpose of ownership and to check for IT professionals to assist with configuring BIOS settings on computers in a ZIP file package that they encounter.
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 9
... and modify the boot order either Windows Visual Basic Scripting Edition (VBScript) or JavaScript. The Lenovo BIOS WMI interface extends the capabilities of WMI to access Lenovo BIOS settings. You can be used to allow management of functions, such as a standard feature in ...or remotely. Overview IT administrators are always looking for easier ways to manage client computer BIOS settings, which enables users to interpret scripts. Key benefits The Lenovo BIOS WMI interface provides the following illustration shows how WMI can be manipulated through Windows Management ...
... and modify the boot order either Windows Visual Basic Scripting Edition (VBScript) or JavaScript. The Lenovo BIOS WMI interface extends the capabilities of WMI to access Lenovo BIOS settings. You can be used to allow management of functions, such as a standard feature in ...or remotely. Overview IT administrators are always looking for easier ways to manage client computer BIOS settings, which enables users to interpret scripts. Key benefits The Lenovo BIOS WMI interface provides the following illustration shows how WMI can be manipulated through Windows Management ...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 10
... ·Replaces DOS-based BIOS configuration tools Interface ·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 products only: ·Thinkcentre M91/M91p Lenovo BIOS Windows Management Instrumentation Interface Deployment...
... ·Replaces DOS-based BIOS configuration tools Interface ·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 products only: ·Thinkcentre M91/M91p Lenovo BIOS Windows Management Instrumentation Interface Deployment...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 11
Chapter 2. Interface Details @Copyright Lenovo 2011 3 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.
Chapter 2. Interface Details @Copyright Lenovo 2011 3 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
...changes to an authentication problem. raw ascii character ·"1e302e" - German, Czech, Slovak, Slovenian @Copyright Lenovo 2011 5 Access Denied The change any BIOS settings. Invalid Parameter The item or value provided is already set, you must be provided. Reboot the ...183;″fr″ - If a supervisor password exists, the correct supervisor password must specify that need to be made due to BIOS settings: Table 2. French-European, Belgian ·″gr″ - Return Types Return Type Description Success Operation completed successfully. See Table...
...changes to an authentication problem. raw ascii character ·"1e302e" - German, Czech, Slovak, Slovenian @Copyright Lenovo 2011 5 Access Denied The change any BIOS settings. Invalid Parameter The item or value provided is already set, you must be provided. Reboot the ...183;″fr″ - If a supervisor password exists, the correct supervisor password must specify that need to be made due to BIOS settings: Table 2. French-European, Belgian ·″gr″ - Return Types Return Type Description Success Operation completed successfully. See Table...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 14
...load default" is requested. List of certain hardware features. The security-related options are case sensitive. 2. Settings might vary on the presence of available BIOS settings Item Name Option Value Related item Serial Port1 Address Serial Port2 Address Parallel Port Address Parallel Port Mode EPP Version ECP Mode DMA Channel... USB Ports USB Support &Rear USB Ports USB Support &Rear USB Ports USB Support &Rear USB Ports USB Support &Rear USB Ports USB Support Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 6 Notes: 1. Table 4. Available...
...load default" is requested. List of certain hardware features. The security-related options are case sensitive. 2. Settings might vary on the presence of available BIOS settings Item Name Option Value Related item Serial Port1 Address Serial Port2 Address Parallel Port Address Parallel Port Mode EPP Version ECP Mode DMA Channel... USB Ports USB Support &Rear USB Ports USB Support &Rear USB Ports USB Support &Rear USB Ports USB Support &Rear USB Ports USB Support Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 6 Notes: 1. Table 4. Available...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 16
...", "USB Hard Disk", "USB CD/DVD", "USB Key" Automatic Boot Sequence N N N TXT TXT PAP N SATA Controller& Onboard Ethernet Controller& USB Support SATA Controller& Onboard Ethernet Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 8 when Flashing "No","Yes" Require POP On Restart "No","Yes" Onboard Ethernet Controller N N N N N N N N N N N Wake Up on Alarm...
...", "USB Hard Disk", "USB CD/DVD", "USB Key" Automatic Boot Sequence N N N TXT TXT PAP N SATA Controller& Onboard Ethernet Controller& USB Support SATA Controller& Onboard Ethernet Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 8 when Flashing "No","Yes" Require POP On Restart "No","Yes" Onboard Ethernet Controller N N N N N N N N N N N Wake Up on Alarm...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 19
...order To change the boot order, complete the following steps: 1. Changing BIOS settings To change using the Lenovo_BiosSetting class (see "List all BIOS settings on the local computer" on page 16 and "List all BIOS settings on a remote computer" on page 17 for "BootOrder" by ... for sample scripts). Identify the value to the desired value using the @Copyright Lenovo 2011 11 Typical Usage Through WMI, you can configure BIOS settings in the following ways: ·List BIOS settings ·Change BIOS settings ·Change the boot order (sometimes referred to as the startup sequence...
...order To change the boot order, complete the following steps: 1. Changing BIOS settings To change using the Lenovo_BiosSetting class (see "List all BIOS settings on the local computer" on page 16 and "List all BIOS settings on a remote computer" on page 17 for "BootOrder" by ... for sample scripts). Identify the value to the desired value using the @Copyright Lenovo 2011 11 Typical Usage Through WMI, you can configure BIOS settings in the following ways: ·List BIOS settings ·Change BIOS settings ·Change the boot order (sometimes referred to as the startup sequence...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 20
...Lenovo_LoadDefaultSettings class, and then use the Lenovo_SaveBiosSetting class to save the settings (see sample scripts). English US, English UK, Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for password parameters is the second boot device and so on page 17 for sample ... by colons. Specify a new boot order by listing the boot devices in Table 5 (see "List all BIOS settings on the local computer" on page 16 and "List all BIOS settings on the remote computer" on page 18for sample scripts). 2. Table 5. Changing an existing hardware password To...
...Lenovo_LoadDefaultSettings class, and then use the Lenovo_SaveBiosSetting class to save the settings (see sample scripts). English US, English UK, Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for password parameters is the second boot device and so on page 17 for sample ... by colons. Specify a new boot order by listing the boot devices in Table 5 (see "List all BIOS settings on the local computer" on page 16 and "List all BIOS settings on the remote computer" on page 18for sample scripts). 2. Table 5. Changing an existing hardware password To...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 21
Please reference Table 4 for BIOS setup: ·Administrator password, POP,HDP and the item"Hardware Password Manager" cannot be changed ... Swiss, Turkish ·″fr″ - French-European, Belgian ·″gr″ - If you want to batch update BIOS settings, make sure that the related item of them. ·A password cannot be set using this item will be hidden and can not...cycle. German, Czech, Slovak, Slovenian The following WMI limitations exist for detail relationship between items. @Copyright Lenovo 2011 13 Passwords can only be updated through WMI.
Please reference Table 4 for BIOS setup: ·Administrator password, POP,HDP and the item"Hardware Password Manager" cannot be changed ... Swiss, Turkish ·″fr″ - French-European, Belgian ·″gr″ - If you want to batch update BIOS settings, make sure that the related item of them. ·A password cannot be set using this item will be hidden and can not...cycle. German, Czech, Slovak, Slovenian The following WMI limitations exist for detail relationship between items. @Copyright Lenovo 2011 13 Passwords can only be updated through WMI.
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 23
Set an impersonation level of ″pktPrivacy″ See Appendix A, "Sample Visual Basic scripts for configuring BIOS settings," on page 15 for sample scripts used to establish an encrypted remote connection as follows: 1. Set an authentication level of ″impersonate″ 2. You ... over the network in clear text by modifying WMI-based administration scripts to implement WMI-based administration scripts that include these parameters for encryption. @Copyright Lenovo 2011 15
Set an impersonation level of ″pktPrivacy″ See Appendix A, "Sample Visual Basic scripts for configuring BIOS settings," on page 15 for sample scripts used to establish an encrypted remote connection as follows: 1. Set an authentication level of ″impersonate″ 2. You ... over the network in clear text by modifying WMI-based administration scripts to implement WMI-based administration scripts that include these parameters for encryption. @Copyright Lenovo 2011 15
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 25
... the scripts from Lenovo_SaveBiosSettings") strReturn = "error" For Each objItem in the ZIP file are for configuring BIOS settings The Visual Basic command line scripts in colItems ObjItem.SaveBiosSettings ";", strReturn Next WScript.Echo " SaveBiosSettings: " + strReturn @Copyright Lenovo 2011 17 The scripts in the ZIP file as -is treated as the end of paramter...
... the scripts from Lenovo_SaveBiosSettings") strReturn = "error" For Each objItem in the ZIP file are for configuring BIOS settings The Visual Basic command line scripts in colItems ObjItem.SaveBiosSettings ";", strReturn Next WScript.Echo " SaveBiosSettings: " + strReturn @Copyright Lenovo 2011 17 The scripts in the ZIP file as -is treated as the end of paramter...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 26
... on the local computer Use the sample scripts in colItems ObjItem.SetBiosSetting strRequest, strReturn Next WScript.Echo strRequest Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 18 List all BIOS settings and values on the local computer. Set objWMIService = GetObject("WinMgmts:" _ &"{ImpersonationLevel=Impersonate}!\\" & strComputer _ &"\root\wmi") Set colItems = objWMIService.ExecQuery("Select...
... on the local computer Use the sample scripts in colItems ObjItem.SetBiosSetting strRequest, strReturn Next WScript.Echo strRequest Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 18 List all BIOS settings and values on the local computer. Set objWMIService = GetObject("WinMgmts:" _ &"{ImpersonationLevel=Impersonate}!\\" & strComputer _ &"\root\wmi") Set colItems = objWMIService.ExecQuery("Select...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 27
... = GetObject("WinMgmts:"_ &"{ImpersonationLevel=Impersonate}!\\" & strComputer _ &"\root\wmi") Set colItems = objWMIService.ExecQuery("Select * from Lenovo_SaveBiosSettings) @Copyright Lenovo 2011 19 WScript.Echo " SetBiosSetting: " + strReturn If strReturn < > "Success" Then WScript.Quit End If Set colItems = ...colItems ObjItem.SaveBiosSettings ";", strReturn Next WScript.Echo strRequest WScript.Echo " SaveBiosSettings: " + strReturn Set a single BIOS setting on the local computer if a Administrator password exists Use the sample scripts in colItems ObjItem.SetBiosSetting strRequest,...
... = GetObject("WinMgmts:"_ &"{ImpersonationLevel=Impersonate}!\\" & strComputer _ &"\root\wmi") Set colItems = objWMIService.ExecQuery("Select * from Lenovo_SaveBiosSettings) @Copyright Lenovo 2011 19 WScript.Echo " SetBiosSetting: " + strReturn If strReturn < > "Success" Then WScript.Quit End If Set colItems = ...colItems ObjItem.SaveBiosSettings ";", strReturn Next WScript.Echo strRequest WScript.Echo " SaveBiosSettings: " + strReturn Set a single BIOS setting on the local computer if a Administrator password exists Use the sample scripts in colItems ObjItem.SetBiosSetting strRequest,...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 28
...;256) WScript.Echo StrItem + " = " + StrValue End If Next Set a single BIOS setting on a remote computer 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 ListAllRemote.vbs [Hostname] Example: cscript.exe ListAllRemote.vbs mattdev-c5 ‟ ‟ List all BIOS settings and values on LAN" Disabled mattdev-c5 ‟ ‟ Set specific BIOS Setting Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 20
...;256) WScript.Echo StrItem + " = " + StrValue End If Next Set a single BIOS setting on a remote computer 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 ListAllRemote.vbs [Hostname] Example: cscript.exe ListAllRemote.vbs mattdev-c5 ‟ ‟ List all BIOS settings and values on LAN" Disabled mattdev-c5 ‟ ‟ Set specific BIOS Setting Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 20
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 29
...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... 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 2011 21 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... 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 2011 21 Syntax: cscript.exe SetConfigPasswordRemote.vbs [Item...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 30
Note: You cannot set a single BIOS setting on a remote computer. Syntax: cscript.exe SetAdminPassword.vbs [old password] [new password] [encoding] Example: cscript.exe SetAdminPassword.vbs oldpass newpass "ascii,us" ‟ ‟ ... Set a Administrator password 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 22
Note: You cannot set a single BIOS setting on a remote computer. Syntax: cscript.exe SetAdminPassword.vbs [old password] [new password] [encoding] Example: cscript.exe SetAdminPassword.vbs oldpass newpass "ascii,us" ‟ ‟ ... Set a Administrator password 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 22
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 31
... " 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 colItems ObjItem.SetBiosPassword strRequest, strReturn Next... WScript.Echo strRequest WScript.Echo " SetBiosPassword: " + strReturn @Copyright Lenovo 2011 23 Syntax: cscript.exe SetAdminPasswordRemote.vbs [old password] [new password] [encoding] [hostname] Example: cscript.exe SetAdminPasswordRemote...
... " 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 colItems ObjItem.SetBiosPassword strRequest, strReturn Next... WScript.Echo strRequest WScript.Echo " SetBiosPassword: " + strReturn @Copyright Lenovo 2011 23 Syntax: cscript.exe SetAdminPasswordRemote.vbs [old password] [new password] [encoding] [hostname] Example: cscript.exe SetAdminPasswordRemote...