Welcome to our peer-to-peer forums, where owners help owners. Need help now? Visit eSupport here.

English Community

ThinkPad NotebooksThinkPad: X Series Laptops
All Forum Topics
Options

2 Posts

07-15-2013

Germany

1 Signins

15 Page Views

  • Posts: 2
  • Registered: ‎07-15-2013
  • Location: Germany
  • Views: 15
  • Message 1 of 1

X230 VB Script for Bios Settings

2013-07-15, 7:05 AM

Hello,

 

i use a VB Script to set the bios Settings (WakonLan, Boot order etc.). I use the Lenovo WMI Class for my script!

 

If a use a script from Lenovo "Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop" to read all bios Settings, missing the Settings for SpeedStepModeBattery and SpeedStepModeAC.

 

the script is:

 

On Error Resume Next

Dim colItems

strComputer = "LOCALHOST"

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, 256)
WScript.Echo StrItem + " = " + StrValue
End

 

 

My question has been forgotten (SpeedStepModeBattery & SpeedStepModeAC)?

 

if a use a script to set the bios Settings for SpeedStepModeBattery & SpeedStepModeAC, i got a error invalid Parameter!

 

regards Michael

Reply
Forum Home

Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop
X

Save

X

Delete

X

No, I don’t want to share ideas Yes, I agree to these terms