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

English Community

Lenovo Developer CommunityWindows Ecosystem Developers
All Forum Topics

1459 Posts



2005 Signins

20083 Page Views

  • Posts: 1459
  • Registered: ‎06-08-2013
  • Location: Spain
  • Views: 20083
  • Message 1 of 1

How to turn on keyboard backlight using Powershell?

2021-03-06, 12:50 PM


  • Lenovo System Interface Foundation: Forms the bridge for Lenovo Vantage and Lenovo Commercial Vantage to communicate with the hardware using remote procedure calls (RPC). To make our lives easier, install this.



We know that the instructions we need are located in 'Keyboard_Core.dll' with a dependency of 'Contract_Keyboard.dll'. These two files are located in: 'C:\ProgramData\Lenovo\ImController\Plugins\ThinkKeyboardPlugin\x86\'.


They are compiled for 32-bit, meaning, if we invoke methods of these libraries using reflection or whatever, we're going to have to use 32-bit powershell:



To execute the scripts:

'C:\Windows\syswow64\WindowsPowerShell\v1.0\powershell.exe -File "path/to/auto-keyboard-backlight-ps1"'


Note: You will have to either change the execution policy for Powershell scripts or sign this script with your own certificate.


Another dependency is that we need to make this compatible for sleep and hibernation. When Windows 10 wakes up from sleep or hibernation, it publishes an event to Windows Event Manager:

  • Log: 'System'
  • Source: 'Power-Troubleshooter'
  • EventID: 1

If you use task scheduler to schedule the script you'll need two triggers:

  • On startup
  • On event (with the event filter described above)


Source code

GitHub - jonashendrickx/lenovo-powershell: Powershell scripts for Lenovo

Kind regards,

Jonas Hendrickx

Lenovo Insider, Windows Insider MVP


Using Browser Search to find your answers in Lenovo and Moto Community

Looking to buy a Lenovo machine? Find your country

Belgium | Canada | Finland | France | Germany | Netherlands | Sweden | U.K. | U.S.A.

Forum Home

Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop





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