Lenovo ThinkCentre M81 Deployment Manual - Page 28

Browse online or download pdf Deployment Manual for Desktop Lenovo ThinkCentre M81. Lenovo ThinkCentre M81 34 pages. (simplified chinese) power manager deployment guide
Also for Lenovo ThinkCentre M81: Specifications (4 pages), Deployment Manual (44 pages), Deployment Manual (44 pages), (French) Guide De Déploiement (46 pages), (Italian) Deployment Manual (44 pages), (German) Implementierungshandbuch (46 pages), (Japanese) Deployment Manual (44 pages), Deployment Manual (42 pages)

Lenovo ThinkCentre M81 Deployment Manual

List all BIOS settings on a remote computer

Set a single BIOS setting on a remote computer

Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop
strReturn = "error"
For
Each objItem in colItems
ObjItem.SaveBiosSettings Wscript.Arguments(2)+";", strReturn
Next
WScript.Echo strRequest
WScript.Echo "
SaveBiosSettings: "
Use the sample scripts in the ZIP file as templates to list all
BIOS settings and values on a remote computer.
Syntax: cscript.exe ListAllRemote.vbs
Example: cscript.exe ListAllRemote.vbs mattdev-c5
‟ List all BIOS settings
On
Error Resume Next
Dim colItems
If WScript.Arguments.Count <> 1 Then
WScript.Echo"ListAllRemote.vbs [hostname]"
WScript.Quit
End If
strComputer = WScript.Arguments(0)
Set
objWMIService
&"{ImpersonationLevel=Impersonate," _
&"authenticationLevel=pktPrivacy}!\\" _
& strComputer &
Set
colItems = objWMIService.ExecQuery("Select * from
Lenovo_BiosSetting")
For
Each objItem in colItems
If
Len(objItem.CurrentSetting) > 0 Then
Setting = ObjItem.CurrentSetting
StrItem = Left(ObjItem.CurrentSetting, InStr(
ObjItem.CurrentSetting, ",")-1)
StrValue = Mid(ObjItem.CurrentSetting, InStr(
ObjItem.CurrentSetting, ",")+1,256)
WScript.Echo StrItem
End If
Next
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]
[Hostname]
Example: cscript.exe SetConfigRemote.vbs "Wake Up on LAN"
Disabled
mattdev-c5
‟ Set
specific BIOS Setting
+ strReturn
= GetObject("WinMgmts:" _
"\root\wmi")
+ "
= "
[Hostname]
+ StrValue
[Value]
20