Lenovo ThinkPad T420 (English) BIOS Setup using Windows Management Instrumenta - Page 11

Script, classes, parameters

Page 11 highlights

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. Interface Details Class Name Type Lenovo_BiosSetting Query Lenovo_SetBiosSetting Method Lenovo_SaveBios Settings Lenovo_DiscardBios Settings Lenovo_LoadDefault Settings Lenovo_SetBios Password Method Method Method Method Parameter / Return CurrentSetting: "Item,Value" "Item,Value,Password,Encoding, KbdLang;" "Password,Encoding,KbdLang;" "Password,Encoding,KbdLang;" "Password,Encoding,KbdLang;" "PasswordType,CurrentPassword, NewPassword, Encoding,KbdLang;" Example "WakeOnLAN,Enable" "WakeOnLAN,Disable,pswd, ascii,us;" "pswd,ascii,us;" "pswd,ascii,us;" "pswd,ascii,us;" "pop,oldpop,newpop,ascii,us;" Notes: 1. See Appendix A "Sample Visual Basic scripts for configuring BIOS settings" on page 17 for Visual Basic sample scripts. 2. See Appendix B "Sample PowerShell scripts for remote BIOS management" on page 25 for PowerShell sample scripts. 3. See Table 4 "List of available BIOS settings" on page 5 for a listing of acceptable setting names. Return types You will receive one of the following return types after making changes to BIOS settings: Table 2. Return Types Return Type Description Success Operation completed successfully. Not Supported The feature is not supported on this system. Invalid Parameter The item or value provided is not valid. © Copyright Lenovo 2008, 2012 3

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40

Chapter
2.
Script
classes
and
parameters
This
chapter
contains
WMI
implementation
details
for
con±guring
BIOS
settings.
ConFguring
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.
Interface
Details
Class
Name
Type
Parameter
/
Return
Example
Lenovo_BiosSetting
Query
CurrentSetting:
"Item,Value"
"WakeOnLAN,Enable"
Lenovo_SetBiosSetting
Method
"Item,Value,Password,Encoding,
KbdLang;"
"WakeOnLAN,Disable,pswd,
ascii,us;"
Lenovo_SaveBios
Settings
Method
"Password,Encoding,KbdLang;"
"pswd,ascii,us;"
Lenovo_DiscardBios
Settings
Method
"Password,Encoding,KbdLang;"
"pswd,ascii,us;"
Lenovo_LoadDefault
Settings
Method
"Password,Encoding,KbdLang;"
"pswd,ascii,us;"
Lenovo_SetBios
Password
Method
"PasswordType,CurrentPassword,
NewPassword,
Encoding,KbdLang;"
"pop,oldpop,newpop,ascii,us;”
Notes:
1.
See
Appendix
A
“Sample
Visual
Basic
scripts
for
con±guring
BIOS
settings”
on
page
17
for
Visual
Basic
sample
scripts.
2.
See
Appendix
B
“Sample
PowerShell
scripts
for
remote
BIOS
management”
on
page
25
for
PowerShell
sample
scripts.
3.
See
Table
4
“List
of
available
BIOS
settings”
on
page
5
for
a
listing
of
acceptable
setting
names.
Return
types
You
will
receive
one
of
the
following
return
types
after
making
changes
to
BIOS
settings:
Table
2.
Return
Types
Return
Type
Description
Success
Operation
completed
successfully.
Not
Supported
The
feature
is
not
supported
on
this
system.
Invalid
Parameter
The
item
or
value
provided
is
not
valid.
©
Copyright
Lenovo
2008,
2012
3