Académique Documents
Professionnel Documents
Culture Documents
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 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
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
III
Chapter 1. Overview
ITadministratorsarealwayslookingforeasierwaystomanage
clientcomputerBIOSsettings,whichincludehardwaresettings
andbootorder.TheLenovoBIOSWMIinterfaceprovidesa
simplifiedwaytochangethesesettings.Lenovohasdevelopeda
BIOSinterfacethatcanbemanipulatedthroughWindows
ManagementInstrumentation(WMI).TheLenovoBIOSWMI
interfaceenablesITadministratorstomakequeriesoncurrent
BIOSsettings,restoresettingstotheirfactorydefaults,change
singlesettings,andmodifythebootordereitheratclient
computersorremotely.
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
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
SystemBusy
Password Authentication
If an Administratorpasswordis alreadyset, you must specifythat
administratorpasswordbeforeyoucanchangeanyBIOSsettings.
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
Notes:
1.
2.
BIOSsettingsandvaluesarecasesensitive.
Thesecurityrelatedoptionsarenotchangedevenifthe
loaddefaultisrequested.
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
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
SeeTable4onpage4foralistofavailableBIOSsettings.
Note:BIOSsettingsandvaluesarecasesensitive.
After making changes to the BIOS settings, you must reboot the
computerbeforethechangeswilltakeeffect.
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
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
Note: The scripts in this appendix are for reference only. To copy
andpastescripts,usethescriptsintheZIPfile.
Syntax: cscript.exe
LoadDefaults.vbs
Example: cscript.exe LoadDefaults.vbs
11
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
Disabled
Next
WScript.Echo strRequest
Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop
12
WScript.Echo "
SetBiosSetting: "
+ strReturn
+ strReturn
[setting]
[value]
Next
WScript.Echo strRequest
WScript.Echo " SetBiosSetting: "
+ strReturn
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
[Value]
14
Disabled
[value] [hostname]"
from
from
+ strReturn
strReturn
WScript.Echo strRequest
WScript.Echo " SaveBiosSettings: "
+ strReturn
Set
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]
from
from
+ strReturn
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:
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.
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