English Community

ThinkPad NotebooksThinkPad: T400 / T500 and newer T series Laptops
All Forum Topics
Options

18 Posts

05-01-2015

US

40 Signins

301 Page Views

  • Posts: 18
  • Registered: ‎05-01-2015
  • Location: US
  • Views: 301
  • Message 1 of 3

ThinkPad WMI BIOS Powershell command

2017-11-20, 21:47 PM

I'm trying to set the BIOS on a T470  to "UEFI Only" boot mode.  On the ThinkCentre, we use the following command:

 

powershell.exe -executionpolicy bypass -command "(Get-WMIObject -Namespace root\wmi -Class Lenovo_SetBIOSSetting).SetBIOSSetting('Boot Mode,UEFI Only')"

 

However, on the Thinkpad, the entry for Boot Mode is "Quick" or "Diagnostics".  I ran

 

Get-WmiObject -Class Lenovo_BIOSSetting -Namespace root\wmi |ft CurrentSetting

 

to see the list of BIOS settings, but it doesn't return anything that references the UEFI/Legacy boot mode setting.  

 

Is there a Powershell command for the THinkPads that would change the "UEFI/Legacy Boot" setting to "UEFI Only"?

 

Thanks!

Solved! See the solution
Reply
Options

6071 Posts

10-29-2009

NC

17510 Signins

156963 Page Views

  • Posts: 6071
  • Registered: ‎10-29-2009
  • Location: NC
  • Views: 156963
  • Message 2 of 3

Re: ThinkPad WMI BIOS Powershell command

2017-11-27, 19:11 PM

ThinkPad does not have an option to toggle legacy vs UEFI in WMI.  But what you can do in WMI is to enable SecureBoot which has the effect of setting UEFI-only.  Is this something that could work for you?

0 person found this solution to be helpful.

This helped me too

Reply
Options

18 Posts

05-01-2015

US

40 Signins

301 Page Views

  • Posts: 18
  • Registered: ‎05-01-2015
  • Location: US
  • Views: 301
  • Message 3 of 3

Re: ThinkPad WMI BIOS Powershell command

2017-12-21, 15:35 PM

For our Win10 environment, you're right, but I forgot to mention that this is for WIn7 machines.  However, since then it seems like it is booting to UEFI automatically, so we may not need to force UEFI anyway.  Thanks!

Reply
Forum Home

Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop
X

Save