Appendix B. Sample Powershell Scripts For Remote Bios Management; Get All Current Bios Settings - Lenovo ThinkPad T400 Deployment Manual

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

Advertisement

Appendix B. Sample PowerShell scripts for remote BIOS
management
The following PowerShell scripts are examples that can be used with management servers.

Get all current BIOS settings

Use the following script as a template to display all current BIOS settings on the local computer.
<Command>
gwmi -class Lenovo_BiosSetting -namespace root\wmi | ForEach-Object
{if ($_.CurrentSetting -ne "") {Write-Host $_.CurrentSetting.replace(","," = ")}}
To obtain the current BIOS settings from a remote computer on your network, replace test-pc with the
computer name of the target computer in the following command. You will be prompted to enter the userid
and password of the administrator-level account for the remote computer.
<Command>
gwmi -class Lenovo_BiosSetting -namespace root\wmi -ComputerName test-pc
-credential
(get-credential) | ForEach-Object {if ($_.CurrentSetting -ne "")
{Write-Host $_.CurrentSetting.replace(","," = ")}}
<Sample output>
PS C:\> gwmi -class Lenovo_BiosSetting -namespace root\wmi -ComputerName test-pc
-credential (get-credential) | ForEach-Object {if ($_.CurrentSetting -ne "")
{Write-Host $_.CurrentSetting.replace(","," = ")}}
cmdlet get-credential at command pipeline position
1 Supply values for the following parameters:
Credential
WakeOnLAN = Enable
FlashOverLAN = Enable
EthernetLANOptionROM = Enable
HarddriveDMA = Enable
WirelessLANandWiMAXRadios = On
SerialPort = Disable
SerialPortIO = 3F8
SerialPortIRQ = 4
ParallelPort = Enable
ParallelPortMode = BiDirectional
ParallelPortIO = 3BC
ParallelPortIRQ = 7
ParallelPortDMA = 0
PCIINTA = 11
PCIINTB = 11
PCIINTC = 11
PCIINTD = 11
PCIINTE = 11
PCIINTF = 11
PCIINTG = 11
PCIINTH = 11
USBBIOSSupport = Enable
AlwaysOnUSB = Disable
TrackPoint = Automatic
TouchPad = Automatic
FnKeyLock = Disable
© Copyright Lenovo 2008, 2012
25

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents