Setting A Bios Setting - Lenovo ThinkPad T400 Deployment Manual

Bios setup using windows management instrumentation deployment guide
Hide thumbs Also See for ThinkPad T400:
Table of Contents

Advertisement

<Command>
gwmi -class Lenovo_BiosSetting -namespace root\wmi | Where-Object
{$_.CurrentSetting.split(",",[StringSplitOptions]::RemoveEmptyEntries) -eq
"AlwaysOnUSB"}
| Format-List CurrentSetting
Remote computer:
<Command>
gwmi -class Lenovo_BiosSetting -namespace root\wmi -ComputerName test-pc -credential
(get-credential) | Where-Object {$_.CurrentSetting.split(",",[StringSplitOptions]
::RemoveEmptyEntries) -eq "AlwaysOnUSB"} | Format-List CurrentSetting
<Sample output>
PS C:\> gwmi -class Lenovo_BiosSetting -namespace root\wmi -ComputerName test-pc
-credential (get-credential) | Where-Object {$_.CurrentSetting.split(",",
[StringSplitOptions]::RemoveEmptyEntries) -eq "AlwaysOnUSB"}
| Format-List CurrentSetting
cmdlet get-credential at command pipeline position 1
Supply values for the following parameters:
Credential
CurrentSetting : AlwaysOnUSB,Disable

Setting a BIOS setting

Use the following script as a template to set the value of a setting. Replace "WakeOnLAN,Disable" with the
item and value of your choice.
Note: The setting string is case sensitive and should be in the format "<item, <value>".
<Command>
(gwmi -class Lenovo_SetBiosSetting
-namespace root\wmi).SetBiosSetting ("WakeOnLAN,Disable")
__GENUS
: 2
__CLASS
: __PARAMETERS
__SUPERCLASS
:
__DYNASTY
: __PARAMETERS
__RELPATH
:
__PROPERTY_COUNT : 1
__DERIVATION
: {}
__SERVER
:
__NAMESPACE
:
__PATH
:
return
: Success
PS C:\> (gwmi -class Lenovo_SaveBiosSettings -namespace root\wmi).
SaveBiosSettings
MemberType
: Method
OverloadDefinitions : {System.Management.ManagementBaseObject
SaveBiosSettings(System.String parameter)}
TypeNameOfValue : System.Management.Automation.PSMethod
Value
: System.Management.ManagementBaseObject
SaveBiosSettings(System.String parameter)
Name
: SaveBiosSettings
27
Appendix B. Sample PowerShell scripts for remote BIOS management

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents