Vous êtes sur la page 1sur 24

Lenovo BIOS Windows

Management Instrumentation
Interface Deployment Guide for
Desktop
Date: June 2009

FirstEdition(June2009)
CopyrightLenovo2009.Allrightsreserved.

Contents
Preface ....................................................................................................................................III
Chapter 1. Overview ............................................................................................................... 1
Using Windows Management Instrumentation................................................................................................. 1
Key benefits ..................................................................................................................................................... 1
Function................................................................................................................................................... 2
Environment ............................................................................................................................................ 2
Interface................................................................................................................................................... 2
Supported computers ....................................................................................................................................... 2

Chapter 2. Script Classes and Parameter ............................................................................ 3


Configuring BIOS settings .............................................................................................................................. 3
Return types...................................................................................................................................................... 3
Password Authentication................................................................................................................................. 4
Available BIOS setting names ........................................................................................................................ 4

Chapter 3. Typical Usage ........................................................................................................ 7


Listing current BIOS settings.......................................................................................................................... 7
Changing BIOS settings .................................................................................................................................. 7
Changing the boot order .................................................................................................................................. 7
Restoring default settings................................................................................................................................ 8
Limitations........................................................................................................................................................ 8

Chapter 4. Security.................................................................................................................. 9
Appendix A. Sample Visual Basic scripts for configuring BIOS settings ..........................11
Restore default settings................................................................................................................................... 11
List all BIOS settings on the local computer .................................................................................................. 12
Set a single BIOS setting on the local computer............................................................................................. 12
Set a single BIOS setting on the local computer if a Administration password exists .................................... 13
List all BIOS settings on the remote computer ............................................................................................... 14
Set a single BIOS setting on a remote computer............................................................................................. 14
Set a single BIOS setting on a remote computer when a Administrator password exists ............................... 15

Appendix B. Notices .............................................................................................................. 17


Trademarks ..................................................................................................................................................... 18

@Copyright Lenovo 2009

Preface
ThepurposeofthisguideistoexplainhowtomodifyBIOS
settingsandbootorderusingWindowsManagement
Instrumentation(WMI)throughtheLenovoclientmanagement
interface.ThisguideisintendedforskilledITadministratorswho
arefamiliarwithconfiguringBIOSsettingsoncomputersintheir
organizations.

ThisguideisprovidedinaZIPfilepackagethatcontainsthis
deploymentguideaswellasVisualBasicsamplescriptstouse
whenconfiguringBIOSsettings.

ThisdeploymentguideisdevelopedforITprofessionalstoassist
withtheuniquechallengesthattheyencounter.Ifyouhave
suggestionsorcomments,communicatewithyourLenovo
authorizedrepresentative.Tolearnmoreaboutthetechnologiesthat
canhelpyoulowerthetotalcostofownershipandtocheckfor
periodicupdatestothisguide,visitthefollowingWebsite:
www.lenovo.com/support

@Copyright Lenovo 2009

III

Chapter 1. Overview
ITadministratorsarealwayslookingforeasierwaystomanage
clientcomputerBIOSsettings,whichincludehardwaresettings
andbootorder.TheLenovoBIOSWMIinterfaceprovidesa
simplifiedwaytochangethesesettings.Lenovohasdevelopeda
BIOSinterfacethatcanbemanipulatedthroughWindows
ManagementInstrumentation(WMI).TheLenovoBIOSWMI
interfaceenablesITadministratorstomakequeriesoncurrent
BIOSsettings,restoresettingstotheirfactorydefaults,change
singlesettings,andmodifythebootordereitheratclient
computersorremotely.

Using Windows Management Instrumentation


WMIisprovidedasastandardfeatureinmostWindows operating
systems.Itprovidesapowerfulsetoffunctions,suchas
querybasedinformationretrievalandeventnotification,which
enablesuserstomanagebothlocalandremotecomputers.The
LenovoBIOSWMIinterfaceextendsthecapabilitiesofWMIto
allowmanagementofBIOSsettings.

ThefollowingillustrationshowshowWMIcanbeusedtoaccess
LenovoBIOSsettings.

WMIusesWindowsScriptHost(WSH)tointerpretscripts.Youcan
writeyourscriptsineitherWindowsVisualBasicScriptingEdition
(VBScript)orJavaScript.

Key benefits
TheLenovoBIOSWMIinterfaceprovidesthefollowingbenefits:
@Copyright Lenovo 2009

Function
FlexibleBIOSconfiguration,includingtheabilitytochangea
singleBIOSsettingorallBIOSsettings
NodependencyonaspecificBIOSlevel

Environment
Remoteorlocalcapabilities
Supportofunattendedoperations
Nosoftwareinstallation,includingmanagedobjectformat(MOF),
required
ReplacesDOSbasedBIOSconfigurationtools

Interface
Easytoadoptforvariousmanagementservers
ReplacescurrentSMIinterface
Commoninterfacefordifferentproducts

Supported computers
BIOSsetupthroughWMIissupportedonthefollowingnew
Thinkcentreproductsonly:

ThinkcentreM58/M58p

Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop

Chapter 2. Script Classes and Parameter


ThischaptercontainsWMIimplementationdetailsforconfiguring
BIOSsettings.

Configuring BIOS settings


ThefollowinginterfacedetailscanbeusedtoaccessLenovoBIOS
settings.
Namespace:\root\WMI
BaseClass:Lenovo_BIOSElement
Interfacedetails(see Table1)
Table 1. Interface Details
ClassName

Type

Parameter / Return

Example

Lenovo_BiosSetting

Query

CurrentSetting:Item,Value

WakeOnLAN,

Lenovo_SetBiosSetting

Method

Item,Value,

WakeOnLAN,
Disabled,

Lenovo_SaveBiosSettings

Method

Password,Encoding,KbdLang, pswd,ascii,us,

Lenovo_DiscardBiosSettings

Method

Lenovo_LoadDefaultSettings Method

Notes:
1. SeeAppendixA,SampleVisualBasicscriptsforconfiguring
BIOSsettings,onpage11forVisualBasicsamplescripts.
2.

See Table4onpage4foralistingofacceptablesettingnames.

Return types
You will receive one of the following return types after making
changestoBIOSsettings:
Table 2. Return Types
ReturnType

Description

Success

Operationcompletedsuccessfully.

Not
Supported

Thefeatureisnotsupportedonthissystem.

Invalid
Parameter

Theitemorvalueprovidedisnotvalid.

Access
Denied

The change could not be made due to an authentication


problem.If asupervisorpasswordexists,the correctsupervisor
passwordmustbeprovided.

@Copyright Lenovo 2009

SystemBusy

BIOS changes have already been made that need to be


committed.Rebootthesystemandtryagain

Password Authentication
If an Administratorpasswordis alreadyset, you must specifythat
administratorpasswordbeforeyoucanchangeanyBIOSsettings.

The format for password parameters is abc,ascii,us with


descriptionsin Table3.
Table 3. Password parameters format, password authentication
Parameter

Description

Possibleselections

Parameter1

Currentpassword

abcrawasciicharacter
1e302escancode

Parameter2

Passwordencoding

ascii
scancode

Parameter3

Keyboard languages
(valid only if encoding is ascii)

us EnglishUS,English,
FrenchCanadian,Italian,Japanese,
Korean,Norwegian,Polish,
Portuguese,
SpanishEuropean,SpanishLatin
American,Swiss,Turkish
fr FrenchEuropean,Belgian
gr German,Czech,Slovak,Slovenian

Available BIOS setting names


SomeBIOSsettingsaredependentonthepresenceofcertain
hardwarefeatures.Settingsmightvaryondifferentcomputers.

Notes:
1.
2.

BIOSsettingsandvaluesarecasesensitive.
Thesecurityrelatedoptionsarenotchangedevenifthe
loaddefaultisrequested.

Table 4. List of available BIOS settings


Itemname

Selectionname

Load

USBSupport

Disabled,Enabled

USBFrontPORTS

Disabled,Enabled

USBRearPORTS

Disabled,Enabled

USB1

Disabled,Enabled

USB2

Disabled,Enabled

USB3

Disabled,Enabled

USB4

Disabled,Enabled

USB5

Disabled,Enabled

USB6

Disabled,Enabled

Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop

USB7

Disabled,Enabled

USB8

Disabled,Enabled

SelectActiveVideo

IGD,PEG,PCI,Auto

PreAllocatedMemorySize

32MB,64MB,128MB

TotalGraphicsMemory

NULL,128MB,256MB,MaxDVMT

PAVPConfiguration

Disabled,Enabled

ExternalSATAPort

Disabled,Enabled

SerialATA

Disabled,Enabled

NativeModeoperation:

Automatic,SerialATA

EnableRAIDSupport

Disabled,Enabled

EnableAHCISupport

Disabled,Enabled

HardDiskPreDelay:

Disabled,3Seconds,6Seconds,12
Seconds,15Seconds,21Seconds,30
Seconds

AudioSupport

Disabled,Enabled

OnboardGBELAN

Disabled,Enabled

BootAgent

Disable,PXE,SMC

PlugandPlayOperatingSystem

No,Yes

LegacyFree

Disabled,Enabled

PCIParity

Disabled,Enabled

CoreMultiProcessing

Disabled,Enabled

ProcessorPowerManagement

Disabled,GV1/GV3Only,CStatesOnly,
Enabled

CStatesupported

C1,C12,C123,C1234

ExecuteDisableBit

Enabled,Disabled

MEBxReset

Disabled,Enabled

Press<CTRLP>toenterMEBx

Disabled,Enabled

ConsoleType

VT100,VT1008bit,PCAnsi7bit,PC
ANSI,VT100+,VTUTF8,ASCII

ContinueC.R.afterPOST

Automatic,Enabled,Disabled

AfterPowerLoss

StayOff,LastState,Poweron

HardDiskTimeout

Disabled,Enabled

WakeonLAN

Disabled,Automatic,Primary

PCIModemRingDetect

Disabled,Automatic,Primary

SerialPortARingDetect

Disabled,Automatic,Primary

PCIWakeUp

Disabled,Automatic,Primary

@Copyright Lenovo 2009

PrimaryStartupSequence

UN_DEFINED,IDE_HDD,IDE_CD,USB_F Y
DC,USB_HDD,USB_KEY,USB_CDROM,
USB_LS120,PCI_BEV,PCI_SCSI,AHCI_HD
D,AHCI_CD,BootableAddinCards,
NothingHere,

AutomaticStartupSequence

UN_DEFINED,IDE_HDD,IDE_CD,USB_F Y
DC,USB_HDD,USB_KEY,USB_CDROM,
USB_LS120,PCI_BEV,PCI_SCSI,AHCI_HD
D,AHCI_CD,BootableAddinCards,
NothingHere,

ErrorStartupSequence

UN_DEFINED,IDE_HDD,IDE_CD,USB_F Y
DC,USB_HDD,USB_KEY,USB_CDROM,
USB_LS120,PCI_BEV,PCI_SCSI,AHCI_HD
D,AHCI_CD,BootableAddinCards,
NothingHere,

ManufacturingStartupSequence

UN_DEFINED,IDE_HDD,IDE_CD,USB_F Y
DC,USB_HDD,USB_KEY,USB_CDROM,
USB_LS120,PCI_BEV,PCI_SCSI,AHCI_HD
D,AHCI_CD,BootableAddinCards,
NothingHere,

Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop

Chapter 3. Typical Usage


Through WMI, you can configure BIOS settings in the
followingways:
ListBIOSsettings
ChangeBIOSsettings
Changethebootorder(sometimesreferredtoasthestartup
sequence)
LoaddefaultBIOSsettings

Listing current BIOS settings


For a list of all available BIOS settings that can be changed
through WMI on a specific computer, use the
Lenovo_BiosSetting class (see List all BIOS settings on the
localcomputeronpage12andListallBIOSsettingsonthe
remotecomputeronpage14forsamplescripts).

SeeTable4onpage4foralistofavailableBIOSsettings.

Changing BIOS settings


TochangeaBIOSsetting,completethefollowingsteps:
1. Identify the BIOS setting you want to change using the
Lenovo_BiosSetting class (see List all BIOS settings on the local
computer on page 12 and List all BIOS settings on the remote
computeronpage14forsamplescripts).
2. Identifythevaluetowhichthesettingwillbechanged.

Note: See Table 4 on page 4 for a list of available values for a


particularsetting.
3. Change the BIOS setting to the desired value using the
Lenovo_SetBiosSetting class, then use the Lenovo_SaveBiosSetting
classtosavethesettings(seeSetasingleBIOSsettingonthelocal
computer on page 12 and Set a single BIOS setting on a remote
computeronpage14forsamplescripts).

Note:BIOSsettingsandvaluesarecasesensitive.

After making changes to the BIOS settings, you must reboot the
computerbeforethechangeswilltakeeffect.

Changing the boot order


Tochangethebootorder,completethefollowingsteps:
1. Determine the current setting for BootOrder by using the
@Copyright Lenovo 2009

Lenovo_BiosSettingclass(seeListallBIOSsettingsonthelocal
computeronpage12andListallBIOSsettingsontheremote
computeronpage14forsamplescripts).
2. To set a new boot order, use the Lenovo_SetBiosSetting class,
then use the Lenovo_SaveBiosSetting class to save the settings
(seeSetasingleBIOSsettingonthelocalcomputeronpage12
andSetasingleBIOSsettingonaremotecomputeronpage14
for sample scripts).Specify a new boot order by listingthe boot
devices in order, separated by colons. Devices that are not
specified are excluded from the boot order. In the following
example, the CD drive 0 is the first boot device and hard disk
drive0isthesecondstartupdevice.
AHCI_CD:AHCI_HDD

Restoring default settings


TorestoredefaultBIOSsettings,usetheLenovo_LoadDefaultSettingsclass,
and thenuse the Lenovo_SaveBiosSettings class tosave the BIOS changes
(seesamplescripts).

Limitations
ThefollowingWMIlimitationsexistforBIOSsetup:

Passwordsettingandchangingarenotsupported.

Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop

Chapter 4. Security
WMIbasedadministrationscriptsoperatingoveraremoteconnectionsend
dataoverthenetworkincleartextbydefault.Youcanenhancesecurityby
modifying WMIbased administration scripts to establish an encrypted
remoteconnectionasfollows:
1. Setanimpersonationlevelofimpersonate
2. SetanauthenticationlevelofpktPrivacy

See Appendix A, Sample Visual Basic scripts for configuring BIOS


settings, on page 11 for sample scripts used to implement WMIbased
administrationscriptsthatincludetheseparametersforencryption.

@Copyright Lenovo 2009

Appendix A. Sample Visual Basic scripts for


configuring BIOS settings
The Visual Basic command line scripts in the ZIP file are examples
thatyoumayfindhelpfulwhenconfiguringBIOSsettings.

The scripts in the ZIP file can be used asis on Windows XP or


Windows Vista tomodify BIOS settings on your Lenovo computer.
The scripts can be executed on a command prompt using the
cscript.exeutility.OnWindowsVista,youmustrunthescriptsfrom
anadministratorcommandprompt.

Note: The scripts in this appendix are for reference only. To copy
andpastescripts,usethescriptsintheZIPfile.

Restore default settings


UsetheexamplescriptsintheZIPfileastemplatestorestoredefault
settingsonthelocalcomputer.

Syntax: cscript.exe
LoadDefaults.vbs
Example: cscript.exe LoadDefaults.vbs

Load default BIOS settings

On Error Resume Next


Dim colItems
strComputer = LOCALHOST Change as needed
Set
objWMIService = GetObject(WinMgmts: _
&"{ImpersonationLevel=Impersonate}!\\" & strComputer _
&"\root\wmi")
Set colItems = objWMIService.ExecQuery("Select * from
Lenovo_LoadDefaultSettings")
strReturn = "error"
For Each objItem in colItems
ObjItem.LoadDefaultSettings ",", strReturn
Next
WScript.Echo "

LoadDefaultSettings: " + 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 ",", strReturn
Next
WScript.Echo "

@Copyright Lenovo 2009

SaveBiosSettings: " + strReturn

11

List all BIOS settings on the local computer


UsethesamplescriptsintheZIPfileastemplatestolistall
BIOSsettingsandvaluesonthelocalcomputer.
Syntax: cscript.exe ListAll.vbs
Example: cscript.exe ListAll.vbs

List all BIOS settings

On Error Resume Next


Dim colItems

strComputer = "LOCALHOST"
Change as needed.
Set objWMIService = GetObject("WinMgmts:" _
&"{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

Set a single BIOS setting on the local computer


UsethesamplescriptsintheZIPfileastemplatestosetasingle
BIOSsettingonthelocalcomputer.

Syntax: cscript.exe SetConfig.vbs [Item] [Value]


Example: cscript.exe SetConfig.vbs Wake on LAN

Disabled

Set specific BIOS Setting

On Error Resume Next


Dim colItems
If WScript.Arguments.Count < > 2 Then
WScript.Echo "SetConfig.vbs [setting] [value]"
WScript.Quit
End If
strRequest = WScript.Arguments(0) + "," + WScript.Arguments(1) +
","
strComputer = "LOCALHOST"
Change as needed.
Set objWMIService = GetObject("WinMgmts:"_
&"{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
Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop

12

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 ",", strReturn
Next
WScript.Echo strRequest
WScript.Echo " SaveBiosSettings: "

+ strReturn

Set a single BIOS setting on the local computer if a


Administration password exists
UsethesamplescriptsintheZIPfileastemplatestosetasingle
BIOSsettingonthelocalcomputerifasupervisorpassword
exists.

Syntax: cscript.exe SetConfigPassword.vbs [Item] [Value]


[Password + Encoding]
Example: cscript.exe SetConfigPassword.vbs Wake on LAN
Disabled pass,ascii,us

Set specific BIOS Setting

On Error Resume Next


Dim colItems
If WScript.Arguments.Count < > 3 Then
WScript.Echo "SetConfigPassword.vbs
[password + encoding]"
WScript.Quit
End If

[setting]

[value]

strRequest = WScript.Arguments(0) + "," + WScript.Arguments(1) +


","
strComputer = "LOCALHOST" Change as needed.
objWMISevice = GetObject("WinMgmts:" _
&"{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
WScript.Echo " SetBiosSetting: "

+ strReturn

If strReturn <> "Success" Then


WScript.Quit
@Copyright Lenovo 2009

13

End If
Set colItems = objWMIService.ExecQuery("Select * from
Lenovo_SaveBiosSettings")
strReturn = "error"
For Each objItem in colItems
ObjItem.SaveBiosSettings
strReturn
Next

WScript.Arguments(2) + ",",

WScript.Echo strRequest
WScript.Echo " SaveBiosSettings: "

+ strReturn

List all BIOS settings on the remote computer


Use the sample scripts in the ZIP file as templates to list all
BIOSsettingsandvaluesonaremotecomputer.
Syntax: cscript.exe ListAllRemote.vbs [Hostname]
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 = GetObject("WinMgmts:" _
&"{ImpersonationLevel=Impersonate," _
&"authenticationLevel=pktPrivacy}!\\" _
& 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, ",")+1256
WScript.Echo StrItem + " = " + StrValue
End If
Next

Set a single BIOS setting on a remote computer


UsethesamplescriptsintheZIPfileastemplatestosetasingle
BIOSsettingonaremotecomputer.

Syntax: cscript.exe SetConfigRemote.vbs [Item]


[Hostname]
Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop

[Value]

14

Example: cscript.exe SetConfigRemote.vbs Wake on LAN


mattdev-c5

Set specific BIOS Setting

On Error Resume Next


Dim colItems
If WScript.Arguments.Count < > 3 Then
WScript.Echo "SetConfigRemote.vbs [setting]
WScript.Quit
End If

Disabled

[value] [hostname]"

strRequest = WScript.Arguments(0) + "," + WScript.Arguments(1) +


","
strComputer = WScript.Arguments(2)
Set objWMIService = GetObject("WinMgmts:" _
&"{ImpersonationLevel=Impersonate," _
&"authenticationLevel=pktPrivacy}!\\" _
&
strComputer &
"\root\wmi")
Set
colItems
=
objWMIService.ExecQuery("Select
Lenovo_SetBiosSetting")
For Each objItem in colItems
ObjItem.SetBiosSetting strRequest, strReturn
Next
WScript.Echo strRequest
WScript.Echo " SetBiosSetting: "

from

from

+ strReturn

If strReturn <> "Success" Then


WScript.Quit
End If
Set
colItems = objWMIService.ExecQuery("Select
Lenovo_SaveBiosSettings")
strReturn = "error"
For Each objItem in colItems
ObjItem.SaveBiosSettings ",",
Next

strReturn

WScript.Echo strRequest
WScript.Echo " SaveBiosSettings: "

+ strReturn

Set a single BIOS setting on a remote computer when


a Administrator password exists
UsethesamplescriptsintheZIPfileastemplatestosetasingle
BIOSsettingonaremotecomputerwhenasupervisorpassword
exists.

Syntax: cscript.exe SetConfigPasswordRemote.vbs


[Item] [Value] [Password + Encoding]
[Hostname]
Example: cscript.exe
SetConfigPasswordRemote.vbs Wake on LAN
Disabled pass,ascii,us mattdev-c5

Set

@Copyright Lenovo 2009

specific BIOS Setting


15


On Error Resume Next
Dim colItems
If WScript.Arguments.Count <> 4 Then
WScript.Echo "SetConfigPasswordRemote.vbs [setting]
[password + encoding] [hostname]"
WScript.Quit
End If

[value]

strRequest = WScript.Arguments(0) + "," + WScript.Arguments(1) +


","
strComputer = WScript.Arguments(3)
Set objWMIService = GetObject("WinMgmts:" _
&"{ImpersonationLevel=Impersonate," _
&"authenticationLevel=pktPrivacy}!\\" _
&
strComputer &
"\root\wmi")
Set
colItems
=
objWMIService.ExecQuery("Select
Lenovo_SetBiosSetting")
For Each objItem in colItems
ObjItem.SetBiosSetting strRequest, strReturn
Next
WScript.Echo strRequest
WScript.Echo " SetBiosSetting: "

from

from

+ strReturn

If strReturn < > "Success" Then


WScript.Quit
End If
Set
colItems
=
objWMIService.ExecQuery("Select
Lenovo_SaveBiosSettings")
strReturn = "error"
For Each objItem in colItems
ObjItem.SaveBiosSettings WScript.Arguments(2)+",",
Next

strReturn

WScript.Echo strRequest
WScript.Echo " SaveBiosSettings: " + strReturn

Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop

16

Appendix B. Notices
Lenovomaynotoffertheproducts,services,orfeaturesdiscussed
inthisdocumentinallcountries.ConsultyourlocalLenovo
representativeforinformationontheproductsandservices
currentlyavailableinyourarea.AnyreferencetoaLenovo
product,program,orserviceisnotintendedtostateorimplythat
onlythatLenovoproduct,program,orservicemaybeused.Any
functionallyequivalentproduct,program,orservicethatdoesnot
infringeanyLenovointellectualpropertyrightmaybeused
instead.However,itistheusersresponsibilitytoevaluateand
verifytheoperationofanyotherproduct,program,orservice.

Lenovomayhavepatentsorpendingpatentapplications
coveringsubjectmatterdescribedinthisdocument.The
furnishingofthisdocumentdoesnotgiveyouanylicenseto
thesepatents.Youcansendlicenseinquiries,inwriting,to:

Lenovo (United States), Inc


1009 Think Place
Building One
Morrisville, NC 27560
USA
Attention: Lenovo Director of Licensing

LENOVOGROUPLTD.PROVIDESTHISPUBLICATIONASIS
WITHOUTWARRANTYOFANYKIND,EITHEREXPRESSOR
IMPLIED,INCLUDING,BUTNOTLIMITEDTO,THEIMPLIED
WARRANTIESOFNONINFRINGEMENT,MERCHANTABILITY
ORFITNESSFORAPARTICULARPURPOSE.Somejurisdictions
donotallowdisclaimerofexpressorimpliedwarrantiesincertain
transactions,therefore,thisstatementmaynotapplytoyou.

Thisinformationcouldincludetechnicalinaccuraciesor
typographicalerrors.Changesareperiodicallymadetothe
informationherein;thesechangeswillbeincorporatedinnew
editionsofthepublication.Lenovomaymakeimprovements
and/orchangesintheproduct(s)and/ortheprogram(s)described
inthispublicationatanytimewithoutnotice.

Theproductsdescribedinthisdocumentarenotintendedforuse
inimplantationorotherlifesupportapplicationswhere
malfunctionmayresultininjuryordeathtopersons.The
informationcontainedinthisdocumentdoesnotaffectorchange
Lenovoproductspecificationsorwarranties.Nothinginthis
documentshalloperateasanexpressorimpliedlicenseor
indemnityundertheintellectualpropertyrightsofLenovoor
thirdparties.Allinformationcontainedinthisdocumentwas
obtainedinspecificenvironmentsandispresentedasan
illustration.Theresultobtainedinotheroperatingenvironments
mayvary.

Lenovomayuseordistributeanyoftheinformationyou
supplyinanywayitbelievesappropriatewithoutincurring
anyobligationtoyou.

@Copyright Lenovo 2009

17

AnyreferencesinthispublicationtononLenovoWebsitesare
providedforconvenienceonlyanddonotinanymannerserveas
anendorsementofthoseWebsites.ThematerialsatthoseWebsites
arenotpartofthematerialsforthisLenovoproduct,anduseof
thoseWebsitesisatyourownrisk.

Trademarks
ThefollowingtermsaretrademarksofLenovointhe
UnitedStates,othercountries,orboth:

Lenovo
the Lenovo logo
Thinkcentre
ThinkVantage

Microsoft,Windows,WindowsVista,andActiveDirectoryare
trademarksorregisteredtrademarksofMicrosoftCorporation
intheUnitedStates,othercountries,orboth.

Othercompany,product,orservicenamesmaybetrademarksor
servicemarksofothers.

Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop

18

Vous aimerez peut-être aussi