BIOS Windows Management Instrumentation Interface Deployment Guide
Page 5
...Lenovo 2012 I Security...17 Appendix A. Contents Preface ...III Chapter 1. Typical Usage ...13 Listing current BIOS settings...13 Changing BIOS settings ...13 Changing the boot order ...13 Restoring default settings ...14 Changing an existing hardware password ...14 Limitations...15 Chapter 4. Sample Visual Basic scripts for configuring BIOS... exists 25 Appendix B. Script Classes and Parameter 3 Configuring BIOS settings ...3 Return types ...5 Password Authentication ...5 Available BIOS setting names ...6 Chapter 3. Overview ...1 Using Windows Management Instrumentation 1 Key benefits ...
...Lenovo 2012 I Security...17 Appendix A. Contents Preface ...III Chapter 1. Typical Usage ...13 Listing current BIOS settings...13 Changing BIOS settings ...13 Changing the boot order ...13 Restoring default settings ...14 Changing an existing hardware password ...14 Limitations...15 Chapter 4. Sample Visual Basic scripts for configuring BIOS... exists 25 Appendix B. Script Classes and Parameter 3 Configuring BIOS settings ...3 Return types ...5 Password Authentication ...5 Available BIOS setting names ...6 Chapter 3. Overview ...1 Using Windows Management Instrumentation 1 Key benefits ...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 7
...to this guide, visit the following Web site: www.lenovo.com/support @Copyright Lenovo 2012 III If you lower the total cost of this deployment guide as well as Visual Basic sample scripts to use when configuring BIOS settings. This deployment guide is provided in their organizations.... or comments, communicate with the unique challenges that contains this guide is intended for IT professionals to modify BIOS settings, boot order using Windows Management Instrumentation (WMI) through the Lenovo client-management interface. This guide is to explain how to assist with your...
...to this guide, visit the following Web site: www.lenovo.com/support @Copyright Lenovo 2012 III If you lower the total cost of this deployment guide as well as Visual Basic sample scripts to use when configuring BIOS settings. This deployment guide is provided in their organizations.... or comments, communicate with the unique challenges that contains this guide is intended for IT professionals to modify BIOS settings, boot order using Windows Management Instrumentation (WMI) through the Lenovo client-management interface. This guide is to explain how to assist with your...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 9
... either Windows Visual Basic Scripting Edition (VBScript) or JavaScript. WMI uses Windows Script host (WSH) to access Lenovo BIOS settings. Key benefits The Lenovo BIOS WMI interface provides the following illustration shows how WMI can write your scripts in most Windows® operating systems....retrieval and event notification, which include hardware settings, and the boot order. The following benefits: @Copyright Lenovo 2012 1 The Lenovo BIOS WMI interface provides a simplified way to allow management of functions, such as a standard feature in either at client computers...
... either Windows Visual Basic Scripting Edition (VBScript) or JavaScript. WMI uses Windows Script host (WSH) to access Lenovo BIOS settings. Key benefits The Lenovo BIOS WMI interface provides the following illustration shows how WMI can write your scripts in most Windows® operating systems....retrieval and event notification, which include hardware settings, and the boot order. The following benefits: @Copyright Lenovo 2012 1 The Lenovo BIOS WMI interface provides a simplified way to allow management of functions, such as a standard feature in either at client computers...
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
Chapter 2. Interface Details @Copyright Lenovo 2012 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 2012 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
...types You will receive one of acceptable setting names. Return Types Return Type Description Success Operation completed successfully. System Busy BIOS changes have already been made that administrator password before you must be made due to an authentication problem. Table 3....gr″ - Invalid Parameter The item or value provided is not supported on this system. German, Czech, Slovak, Slovenian @Copyright Lenovo 2012 5 The format for Visual Basic sample scripts. 2. scancode Parameter 2 Password encoding Parameter 3 Keyboard languages (valid only if encoding...
...types You will receive one of acceptable setting names. Return Types Return Type Description Success Operation completed successfully. System Busy BIOS changes have already been made that administrator password before you must be made due to an authentication problem. Table 3....gr″ - Invalid Parameter The item or value provided is not supported on this system. German, Czech, Slovak, Slovenian @Copyright Lenovo 2012 5 The format for Visual Basic sample scripts. 2. scancode Parameter 2 Password encoding Parameter 3 Keyboard languages (valid only if encoding...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 14
...certain hardware features. Table 4. 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 "Disabled","3F8/IRQ4","2F8/IRQ3"," 3E8/IRQ4","2E8/IRQ3" N...", "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 BIOS settings and values are not changed even if the "load default" is requested. Available...
...certain hardware features. Table 4. 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 "Disabled","3F8/IRQ4","2F8/IRQ3"," 3E8/IRQ4","2E8/IRQ3" N...", "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 BIOS settings and values are not changed even if the "load default" is requested. Available...
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
...be changed . Chapter 3. Note: BIOS settings and values are case sensitive. Changing BIOS settings To change the boot order, complete the following steps: 1. Identify the value to change using the @Copyright Lenovo 2012 13 Change the BIOS setting to the BIOS settings, you want to which the... setting will take effect. Determine the current setting for "BootOrder" by using the Lenovo_BiosSetting class (see "List all BIOS settings on the local computer" on...
...be changed . Chapter 3. Note: BIOS settings and values are case sensitive. Changing BIOS settings To change the boot order, complete the following steps: 1. Identify the value to change using the @Copyright Lenovo 2012 13 Change the BIOS setting to the BIOS settings, you want to which the... setting will take effect. Determine the current setting for "BootOrder" by using the Lenovo_BiosSetting class (see "List all BIOS settings on the local computer" on...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 22
...American, Swiss, Turkish ·″fr″ - German, Czech, Slovak, Slovenian Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 14 Restoring default settings To restore default BIOS settings, use the Lenovo_LoadDefaultSettings class, and then use the Lenovo_SaveBiosSetting class to save the ...us ″ with descriptions in order, separated by colons. Lenovo_BiosSetting class (see "List all BIOS settings on the local computer" on page 20 and "List all BIOS settings on the remote computer" on page 21 for sample scripts). To set a new boot...
...American, Swiss, Turkish ·″fr″ - German, Czech, Slovak, Slovenian Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop 14 Restoring default settings To restore default BIOS settings, use the Lenovo_LoadDefaultSettings class, and then use the Lenovo_SaveBiosSetting class to save the ...us ″ with descriptions in order, separated by colons. Lenovo_BiosSetting class (see "List all BIOS settings on the local computer" on page 20 and "List all BIOS settings on the remote computer" on page 21 for sample scripts). To set a new boot...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 23
..., you must reboot the system after changing one power cycle. If you want to batch update BIOS settings, make sure that the related item of them. ·A password cannot be updated through WMI. Please reference Table 4 ...for BIOS setup: · Administrator password, POP and HDP cannot be changed simultaneously during one of each item is in ...already exists one. Limitations The following WMI limitations exist for detail relationship between items. @Copyright Lenovo 2012 15
..., you must reboot the system after changing one power cycle. If you want to batch update BIOS settings, make sure that the related item of them. ·A password cannot be updated through WMI. Please reference Table 4 ...for BIOS setup: · Administrator password, POP and HDP cannot be changed simultaneously during one of each item is in ...already exists 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 impersonation level of ″pktPrivacy″ See Appendix A, "Sample Visual Basic scripts for configuring BIOS settings," on page 19 for encryption. @Copyright Lenovo 2012 17 Set an authentication level of ″impersonate″ 2. You can enhance security by default. Security WMI-based administration scripts operating over a remote connection ...
Chapter 4. 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 Set an authentication level of ″impersonate″ 2. You can enhance security by default. Security WMI-based administration scripts operating over a remote connection ...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 27
...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 2012 19 On Windows Vista, you may find helpful when configuring... BIOS settings. The scripts can be executed on your Lenovo computer. The scripts in the ZIP file as -is treated as ...
...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 2012 19 On Windows Vista, you may find helpful when configuring... BIOS settings. The scripts can be executed on your Lenovo computer. The scripts in the ZIP file as -is treated as ...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 28
... strComputer _ &"\root\wmi") Set colItems = objWMIService.ExecQuery("Select * from Lenovo_SetBiosSetting") For Each objItem in the ZIP file as templates to list all BIOS settings ' On Error Resume Next Dim colItems strComputer = "LOCALHOST" ' Change as needed . Syntax: cscript.exe SetConfig.vbs [Item] [Value] ... BIOS settings on the local computer Use the sample scripts in the ZIP file as templates to set a single BIOS setting on the local computer Use the sample scripts in colItems ObjItem.SetBiosSetting strRequest, strReturn Next WScript.Echo strRequest Lenovo BIOS Windows...
... strComputer _ &"\root\wmi") Set colItems = objWMIService.ExecQuery("Select * from Lenovo_SetBiosSetting") For Each objItem in the ZIP file as templates to list all BIOS settings ' On Error Resume Next Dim colItems strComputer = "LOCALHOST" ' Change as needed . Syntax: cscript.exe SetConfig.vbs [Item] [Value] ... BIOS settings on the local computer Use the sample scripts in the ZIP file as templates to set a single BIOS setting on the local computer Use the sample scripts in colItems ObjItem.SetBiosSetting strRequest, strReturn Next WScript.Echo strRequest Lenovo BIOS Windows...
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 29
...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. Syntax: cscript.exe SetConfigPassword.vbs [Item] [Value] [Password+Encoding] Example: cscript.exe SetConfigPassword.vbs "Wake Up on LAN"... objWMIService = GetObject("WinMgmts:"_ &"{ImpersonationLevel=Impersonate}!\\" & strComputer _ &"\root\wmi") Set colItems = objWMIService.ExecQuery("Select * from Lenovo_SaveBiosSettings) @Copyright Lenovo 2012 21
...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. Syntax: cscript.exe SetConfigPassword.vbs [Item] [Value] [Password+Encoding] Example: cscript.exe SetConfigPassword.vbs "Wake Up on LAN"... objWMIService = GetObject("WinMgmts:"_ &"{ImpersonationLevel=Impersonate}!\\" & strComputer _ &"\root\wmi") Set colItems = objWMIService.ExecQuery("Select * from Lenovo_SaveBiosSettings) @Copyright Lenovo 2012 21
BIOS Windows Management Instrumentation Interface Deployment Guide
Page 30
... Each objItem in colItems ObjItem.SaveBiosSettings Wscript.Arguments(2)+";", strReturn Next WScript.Echo strRequest WScript.Echo " SaveBiosSettings: " + strReturn 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 22 Syntax: cscript.exe ListAllRemote.vbs [Hostname] Example: cscript.exe ListAllRemote.vbs...
... Each objItem in colItems ObjItem.SaveBiosSettings Wscript.Arguments(2)+";", strReturn Next WScript.Echo strRequest WScript.Echo " SaveBiosSettings: " + strReturn 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 22 Syntax: cscript.exe ListAllRemote.vbs [Hostname] Example: cscript.exe ListAllRemote.vbs...
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
... 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 2012 25 &"{ImpersonationLevel=Impersonate," _ &"authenticationLevel=pktPrivacy}!\\" _ & strComputer & "\root\wmi") Set colItems = objWMIService.ExecQuery("Select * from Lenovo_SetBiosPassword") strReturn = "error" For Each objItem in the ZIP file...
... 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 2012 25 &"{ImpersonationLevel=Impersonate," _ &"authenticationLevel=pktPrivacy}!\\" _ & strComputer & "\root\wmi") Set colItems = objWMIService.ExecQuery("Select * from Lenovo_SetBiosPassword") strReturn = "error" For Each objItem in the ZIP file...