Lenovo ThinkCentre M90p Panduan Penyebaran - Halaman 24

Jelajahi secara online atau unduh pdf Panduan Penyebaran untuk Desktop Lenovo ThinkCentre M90p. Lenovo ThinkCentre M90p 32 halaman. (simplified chinese) power manager deployment guide
Juga untuk Lenovo ThinkCentre M90p: Spesifikasi (4 halaman), Panduan Penyebaran (44 halaman), Panduan Penyebaran (44 halaman), Panduan Konfigurasi (40 halaman), (Bahasa Inggris) Panduan Penerapan (46 halaman), Panduan Penerapan (Italia) (44 halaman), (Bahasa Jerman) Panduan implementasi (46 halaman), Panduan Penerapan (Bahasa Jepang) (44 halaman), Panduan Penyebaran (42 halaman)

Lenovo ThinkCentre M90p Panduan Penyebaran

List all BIOS settings on the local computer

Set a single BIOS setting on the local computer

Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop
Use the sample scripts in the ZIP file as templates to list all
BIOS settings and values on the local computer.
Syntax: cscript.exe
Example: cscript.exe
'
' List all BIOS settings
'
On
Error Resume Next
Dim colItems
strComputer = "LOCALHOST"
Set
objWMIService
&"{ImpersonationLevel=Impersonate}!\\" & strComputer _
&"\root\wmi")
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)
WScript.Echo StrItem + " = " + StrValue
End If
Next
Use the sample scripts in the ZIP file as templates to set a single
BIOS setting on the local computer.
Syntax: cscript.exe SetConfig.vbs [Item] [Value]
Example: cscript.exe SetConfig.vbs "Wake Up on LAN"
'
' Set
specific BIOS Setting
'
On
Error Resume Next
Dim colItems
If WScript.Arguments.Count < > 2 Then
WScript.Echo "SetConfig.vbs
WScript.Quit
End If
strRequest = WScript.Arguments(0) + "," + WScript.Arguments(1) +
";"
strComputer = "LOCALHOST"
Set
objWMIService
&"{ImpersonationLevel=Impersonate}!\\" & strComputer _
&"\root\wmi")
Set
colItems = objWMIService.ExecQuery("Select * from
Lenovo_SetBiosSetting")
For
Each objItem in colItems
ObjItem.SetBiosSetting strRequest, strReturn
Next
WScript.Echo strRequest
ListAll.vbs
ListAll.vbs
= GetObject("WinMgmts:" _
[setting]
= GetObject("WinMgmts:"_
' Change as
needed.
Disabled
[value]"
' Change as
needed.
16