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

Setting, setting

Page 35 highlights

gwmi -class Lenovo_BiosSetting -namespace root\wmi | Where-Object {$_.CurrentSetting.split(",",[StringSplitOptions]::RemoveEmptyEntries) -eq "AlwaysOnUSB"} | Format-List CurrentSetting Remote computer: gwmi -class Lenovo_BiosSetting -namespace root\wmi -ComputerName test-pc -credential (get-credential) | Where-Object {$_.CurrentSetting.split(",",[StringSplitOptions] ::RemoveEmptyEntries) -eq "AlwaysOnUSB"} | Format-List CurrentSetting PS C:\> gwmi -class Lenovo_BiosSetting -namespace root\wmi -ComputerName test-pc -credential (get-credential) | Where-Object {$_.CurrentSetting.split(",", [StringSplitOptions]::RemoveEmptyEntries) -eq "AlwaysOnUSB"} | Format-List CurrentSetting cmdlet get-credential at command pipeline position 1 Supply values for the following parameters: Credential CurrentSetting : AlwaysOnUSB,Disable Setting a BIOS setting Use the following script as a template to set the value of a setting. Replace "WakeOnLAN,Disable" with the item and value of your choice. Note: The setting string is case sensitive and should be in the format "

  • 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

¾
Command
!
JZPL
¿FODVV
/HQRYRB%LRV6HWWLQJ
¿QDPHVSDFH
URRW?ZPL
_
:KHUH¿2EMHFW
^ÆB³&XUUHQW6HWWLQJ³VSOLW¶µ¼µ¼>6WULQJ6SOLW2SWLRQV@²²5HPRYH(PSW\(QWULHV¹
¿HT
µ$OZD\V2Q86%µ`
_
)RUPDW¿/LVW
&XUUHQW6HWWLQJ
Remote
computer:
¾
Command
!
JZPL
¿FODVV
/HQRYRB%LRV6HWWLQJ
¿QDPHVSDFH
URRW?ZPL
¿&RPSXWHU1DPH
WHVW¿SF
¿FUHGHQWLDO
¶JHW¿FUHGHQWLDO¹
_
:KHUH¿2EMHFW ^ÆB³&XUUHQW6HWWLQJ³VSOLW¶µ¼µ¼>6WULQJ6SOLW2SWLRQV@
²²5HPRYH(PSW\(QWULHV¹
¿HT µ$OZD\V2Q86%µ`
_
)RUPDW¿/LVW
&XUUHQW6HWWLQJ
¾
Sample
output
!
36
&²?!
JZPL
¿FODVV
/HQRYRB%LRV6HWWLQJ
¿QDPHVSDFH
URRW?ZPL
¿&RPSXWHU1DPH
WHVW¿SF
¿FUHGHQWLDO
¶JHW¿FUHGHQWLDO¹
_
:KHUH¿2EMHFW ^ÆB³&XUUHQW6HWWLQJ³VSOLW¶µ¼µ¼
>6WULQJ6SOLW2SWLRQV@²²5HPRYH(PSW\(QWULHV¹
¿HT µ$OZD\V2Q86%µ`
_
)RUPDW¿/LVW
&XUUHQW6HWWLQJ
FPGOHW
JHW¿FUHGHQWLDO
DW
FRPPDQG
SLSHOLQH
SRVLWLRQ
À
6XSSO\
YDOXHV
IRU
WKH
IROORZLQJ
SDUDPHWHUV²
&UHGHQWLDO
&XUUHQW6HWWLQJ
²
$OZD\V2Q86%¼'LVDEOH
Setting
a
BIOS
setting
Use
the
following
script
as
a
template
to
set
the
value
of
a
setting.
Replace
"WakeOnLAN,Disable"
with
the
item
and
value
of
your
choice.
Note:
The
setting
string
is
case
sensitive
and
should
be
in
the
format
"<item,
<value>".
¾
Command
!
¶JZPL
¿FODVV
/HQRYRB6HW%LRV6HWWLQJ
¿QDPHVSDFH
URRW?ZPL¹³6HW%LRV6HWWLQJ ¶µ:DNH2Q/$1¼'LVDEOHµ¹
BB*(186
²
Á
BB&/$66
²
BB3$5$0(7(56
BB683(5&/$66
²
BB'<1$67<
²
BB3$5$0(7(56
BB5(/3$7+
²
BB3523(57<B&2817
²
À
BB'(5,9$7,21
²
^`
BB6(59(5
²
BB1$0(63$&(
²
BB3$7+
²
UHWXUQ
²
6XFFHVV
36
&²?!
¶JZPL
¿FODVV
/HQRYRB6DYH%LRV6HWWLQJV
¿QDPHVSDFH
URRW?ZPL¹³
6DYH%LRV6HWWLQJV
0HPEHU7\SH
²
0HWKRG
2YHUORDG'HúQLWLRQV
²
^6\VWHP³0DQDJHPHQW³0DQDJHPHQW%DVH2EMHFW
6DYH%LRV6HWWLQJV¶6\VWHP³6WULQJ
SDUDPHWHU¹`
7\SH1DPH2I9DOXH
²
6\VWHP³0DQDJHPHQW³$XWRPDWLRQ³360HWKRG
9DOXH
²
6\VWHP³0DQDJHPHQW³0DQDJHPHQW%DVH2EMHFW
6DYH%LRV6HWWLQJV¶6\VWHP³6WULQJ
SDUDPHWHU¹
1DPH
²
6DYH%LRV6HWWLQJV
Appendix
B.
Sample
PowerShell
scripts
for
remote
BIOS
management
27