Every time I plug in the charger for my Lenovo laptop running Windows 11, PowerShell opens and closes repeatedly, especially as it gets close to 90% charged. This is really frustrating, especially when I'm gaming and it keeps interrupting me. Does anyone know why this happens and how to fix it?
3 Answers
Honestly, this isn't a standard PowerShell or Windows issue; it's likely a Lenovo-specific configuration. I suggest checking the scheduled tasks, as Lenovo installs various additional tools that might be responsible for this. It might be a better question for a tech support forum, though.
Check your scheduled tasks to see if there are any set to trigger at certain battery levels. Lenovo laptops have features that might stop charging at specific percentages, and it could be tied to that.
You might want to use Microsoft Process Monitor. Run it while you plug in your charger. After PowerShell stops popping up, you can filter the events to see what's causing it. Look for "Process and Thread Activity" to track down the culprit!

Thanks for the tip! I’m not super tech-savvy, so I appreciate any guidance I can get!