Question Windows 11 powershell prompt error only while charging C:\Windows\System32\WindowsPowerShell\v1.0\powershell.EXE

Niac111

Reputable
Oct 16, 2019
4
0
4,510
Every time I charge my laptop I get this powershell prompt:

Exception calling "Load" with "1" argument(s): "Could not load file or assembly '2558120 bytes loaded from Anonymously
Hosted DynamicMethods Assembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An
attempt was made to load a program with an incorrect format."
At line:1 char:1
  • [System.Reflection.Assembly]::Load([System.Convert]::FromBase64String ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: :)) [], MethodInvocationException
+ FullyQualifiedErrorId : BadImageFormatException

PS C:\WINDOWS\system32>

It still charges but continues to re-prompt every 15 mins. Can anyone help my with this?

ProcessorIntel(R) Core(TM) i7-10750H CPU @ 2.60GHz
Discrete GPUNVIDIA GeForce GTX 1650 with Max-Q Design
iGPUIntel(R) UHD Graphics
Operating SystemWindows 11
RAM16 GB