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

supervisor, password, local, computer, exists

Page 30 highlights

strRequest = WScript.Arguments(0) + "," + WScript.Arguments(1) + "," + WScript.Arguments(2) + ";" strComputer = WScript.Arguments(3) Set objWMIService = GetObject("WinMgmts:" _ &"{ImpersonationLevel=Impersonate," _ &"authenticationLevel=pktPrivacy}!\\" _ & strComputer & "\root\wmi") Set colItems = objWMIService.ExecQuery("Select * from Lenovo_SetBiosSetting") For Each objItem in colItems ObjItem.SetBiosSetting strRequest, strReturn Next WScript.Echo strRequest WScript.Echo " SetBiosSetting: " + strReturn If strReturn "Success" Then WScript.Quit End If Set colItems = objWMIService.ExecQuery("Select * from Lenovo_SaveBiosSettings") strReturn = "error" For Each objItem in colItems ObjItem.SaveBiosSettings WScript.Arguments(2) + ";", strReturn Next WScript.Echo strRequest WScript.Echo " SaveBiosSettings: " + strReturn Set a supervisor password on the local computer when a supervisor password exists Use the sample scripts in the ZIP file as templates to set a supervisor password on the local computer when a supervisor password exists. Note: You cannot set a supervisor password if one does not already exist. Syntax: cscript.exe SetSupervisorPassword.vbs [Old Password] [New Password] [encoding] Example: cscript.exe SetSupervisorPassword.vbs oldpass newpass ascii,us ' ' Update Admnistrator Password ' On Error Resume Next Dim colItems If WScript.Arguments.Count 3 Then WScript.Echo "SetSupervisorPassword.vbs [old Password] [new Password] [encoding]" WScript.Quit End If 22 Lenovo BIOS Setup using Windows Management Instrumentation Deployment Guide

  • 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

VWU5HTXHVW
°
:6FULSW³$UJXPHQWV¶±¹
½ µ¼µ
½
:6FULSW³$UJXPHQWV¶À¹
½ µ¼µ
½
:6FULSW³$UJXPHQWV¶Á¹
½ µ»µ
VWU&RPSXWHU
°
:6FULSW³$UJXPHQWV¶Ä¹
6HW
REM:0,6HUYLFH
°
*HW2EMHFW¶µ:LQ0JPWV²µ
B
·µ^,PSHUVRQDWLRQ/HYHO°,PSHUVRQDWH¼µ
B
·µDXWKHQWLFDWLRQ/HYHO°SNW3ULYDF\`¸??µ
B
·
VWU&RPSXWHU · µ?URRW?ZPLµ¹
6HW
FRO,WHPV
°
REM:0,6HUYLFH³([HF4XHU\¶µ6HOHFW
º
IURP
/HQRYRB6HW%LRV6HWWLQJµ¹
)RU
(DFK
REM,WHP
LQ
FRO,WHPV
2EM,WHP³6HW%LRV6HWWLQJ
VWU5HTXHVW¼
VWU5HWXUQ
1H[W
:6FULSW³(FKR
VWU5HTXHVW
:6FULSW³(FKR µ
6HW%LRV6HWWLQJ² µ
½
VWU5HWXUQ
,I
VWU5HWXUQ
¾! µ6XFFHVVµ
7KHQ
:6FULSW³4XLW
(QG
,I
6HW
FRO,WHPV
°
REM:0,6HUYLFH³([HF4XHU\¶µ6HOHFW
º
IURP
/HQRYRB6DYH%LRV6HWWLQJVµ¹
VWU5HWXUQ
° µHUURUµ
)RU
(DFK
REM,WHP
LQ
FRO,WHPV
2EM,WHP³6DYH%LRV6HWWLQJV
:6FULSW³$UJXPHQWV¶Á¹
½ µ»µ¼
VWU5HWXUQ
1H[W
:6FULSW³(FKR
VWU5HTXHVW
:6FULSW³(FKR µ
6DYH%LRV6HWWLQJV² µ
½
VWU5HWXUQ
Set
a
supervisor
password
on
the
local
computer
when
a
supervisor
password
exists
Use
the
sample
scripts
in
the
ZIP
±le
as
templates
to
set
a
supervisor
password
on
the
local
computer
when
a
supervisor
password
exists.
Note:
You
cannot
set
a
supervisor
password
if
one
does
not
already
exist.
Syntax
:
FVFULSW³H[H
6HW6XSHUYLVRU3DVVZRUG³YEV
>2OG
3DVVZRUG@
>1HZ
3DVVZRUG@
[encoding]
Example
:
FVFULSW³H[H
6HW6XSHUYLVRU3DVVZRUG³YEV
ROGSDVV
QHZSDVV
DVFLL¼XV
´
´
8SGDWH
$GPQLVWUDWRU
3DVVZRUG
´
2Q
(UURU
5HVXPH
1H[W
'LP
FRO,WHPV
,I
:6FULSW³$UJXPHQWV³&RXQW
¾!
Ä
7KHQ
:6FULSW³(FKR µ6HW6XSHUYLVRU3DVVZRUG³YEV
>ROG
3DVVZRUG@
>QHZ
3DVVZRUG@
>HQFRGLQJ@µ
:6FULSW³4XLW
(QG
,I
22
Lenovo
BIOS
Setup
using
Windows
Management
Instrumentation
Deployment
Guide