Lenovo ThinkPad X200s (English) BIOS Setup using Windows Management Instrument - Page 33
Appendix, Sample, PowerShell, scripts, remote, management
View all Lenovo ThinkPad X200s manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 33 highlights
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. 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. gwmi -class Lenovo_BiosSetting -namespace root\wmi -ComputerName test-pc -credential (get-credential) | ForEach-Object {if ($_.CurrentSetting -ne "") {Write-Host $_.CurrentSetting.replace 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