LPCScrypt not running on Windows 11 25H2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPCScrypt not running on Windows 11 25H2

Jump to solution
1,070 Views
mathiasmonse
Contributor II

[LPCScrypt version 2.1.3_83]

For booting and flashing an old LPC1857 we use LPCScrypt for updating device firmware.

Since Windows 11 25H2 LPCScrypt is broken: calling it on the command line (ie PowerShell) leads to "Error: Error from CreateProcess: The system cannot find the file specified"

Sysinternal's Process Monitor leads to the assumption that LPCScrypt is performing a wmi query by using "wmic path Win32_PnPEntity where (service like '%usbser%' and name like '%lpc%') get.exe".

But wmic is declared deprecated since 2016 and had been removed from Windows 11 since 25H2 (see Windows Management Instrumentation Command-line (WMIC) removal from Windows - Microsoft Support)

Request to NXP dev team: Is this issue known yet? How to get it to work in the future?

0 Kudos
Reply
1 Solution
1,041 Views
mathiasmonse
Contributor II

Thank you for the information.

My workaround was to add wmic support to Windows 11 as follows

Regards,

Mathias

 

View solution in original post

0 Kudos
Reply
5 Replies
1,048 Views
ErichStyger
Specialist I

I recently upgraded from Win10 to Win11 25H2.

But so far, I have not seen an issue with LPCScrypt (yet). Using the one packaged with LinkServer v25.9.134 (see below)

Updating my LPC-Link2 with LPCScrypt worked fine.

ErichStyger_0-1760965172059.png

Not an expert on WMIC, but according to the information it is gone in 25H2, chatGTP suggested to copy wmic.exe and wmic.exe.mui from an older Windows version to 25H2.

NXP is aware of the issue, and there might be an updated LPCScrypt in a next LinkServer release.

0 Kudos
Reply
1,044 Views
ErichStyger
Specialist I

Probably because I have upgraded from Win10 to Win11, I still have WMIC on my machine:

ErichStyger_0-1760966134292.png

 

0 Kudos
Reply
1,005 Views
mathiasmonse
Contributor II
Hi ErichStyger, you are right. By upgrading from Windows 10 wmic is kept in Windows 11.
But I had to setup a fresh Windows 11 system and came accross that issue.
0 Kudos
Reply
1,057 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @mathiasmonse 

Thanks for your question.

If WMIC support is removed, yes, you can try to install it. Or  use an earlier Windows version or to run LPCScrypt on Linux or macOS.

 

BR

Alice

0 Kudos
Reply
1,042 Views
mathiasmonse
Contributor II

Thank you for the information.

My workaround was to add wmic support to Windows 11 as follows

Regards,

Mathias

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2189005%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELPCScrypt%20not%20running%20on%20Windows%2011%2025H2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189005%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%5BLPCScrypt%20version%202.1.3_83%5D%3C%2FP%3E%3CP%3EFor%20booting%20and%20flashing%20an%20old%20LPC1857%20we%20use%20LPCScrypt%20for%20updating%20device%20firmware.%3C%2FP%3E%3CP%3ESince%20Windows%2011%2025H2%20LPCScrypt%20is%20broken%3A%20calling%20it%20on%20the%20command%20line%20(ie%20PowerShell)%20leads%20to%20%22Error%3A%20Error%20from%20CreateProcess%3A%20The%20system%20cannot%20find%20the%20file%20specified%22%3C%2FP%3E%3CP%3ESysinternal's%20Process%20Monitor%20leads%20to%20the%20assumption%20that%20LPCScrypt%20is%20performing%20a%20wmi%20query%20by%20using%20%22wmic%20path%20Win32_PnPEntity%20where%20(service%20like%20'%25usbser%25'%20and%20name%20like%20'%25lpc%25')%20get.exe%22.%3C%2FP%3E%3CP%3EBut%20wmic%20is%20declared%20deprecated%20since%202016%20and%20had%20been%20removed%20from%20Windows%2011%20since%2025H2%20(see%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Ftopic%2Fwindows-management-instrumentation-command-line-wmic-removal-from-windows-e9e83c7f-4992-477f-ba1d-96f694b8665d%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EWindows%20Management%20Instrumentation%20Command-line%20(WMIC)%20removal%20from%20Windows%20-%20Microsoft%20Support%3C%2FA%3E)%3C%2FP%3E%3CP%3ERequest%20to%20NXP%20dev%20team%3A%20Is%20this%20issue%20known%20yet%3F%20How%20to%20get%20it%20to%20work%20in%20the%20future%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2189671%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LPCScrypt%20not%20running%20on%20Windows%2011%2025H2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189671%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHi%20ErichStyger%2C%20you%20are%20right.%20By%20upgrading%20from%20Windows%2010%20wmic%20is%20kept%20in%20Windows%2011.%3CBR%20%2F%3EBut%20I%20had%20to%20setup%20a%20fresh%20Windows%2011%20system%20and%20came%20accross%20that%20issue.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2189220%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LPCScrypt%20not%20running%20on%20Windows%2011%2025H2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189220%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20for%20the%20information.%3C%2FP%3E%3CP%3EMy%20workaround%20was%20to%20add%20wmic%20support%20to%20Windows%2011%20as%20follows%3C%2FP%3E%3CUL%3E%3CLI%3Eopen%20system%20settings%20as%20an%20administrator%2C%20go%20to%20optional%20features%20(...further%20features...)%20and%20add%20wmic%26nbsp%3B%3C%2FLI%3E%3CLI%3Eor%20by%20using%20%22%3CSPAN%3EDISM%20%2FOnline%20%2FAdd-Capability%20%2FCapabilityName%3AWMIC%3C%2FSPAN%3E%22%20%5Bsee%20%3CA%20href%3D%22https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fanswers%2Fquestions%2F1076711%2Finstall-wmic-to-a-windows-11-computer%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EInstall%20WMIC%20to%20a%20Windows%2011%20computer%20-%20Microsoft%20Q%26amp%3BA%3C%2FA%3E%5D%3C%2FLI%3E%3C%2FUL%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EMathias%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2189215%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LPCScrypt%20not%20running%20on%20Windows%2011%2025H2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189215%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EProbably%20because%20I%20have%20upgraded%20from%20Win10%20to%20Win11%2C%20I%20still%20have%20WMIC%20on%20my%20machine%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ErichStyger_0-1760966134292.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErichStyger_0-1760966134292.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F361664iCF07977B88202018%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ErichStyger_0-1760966134292.png%22%20alt%3D%22ErichStyger_0-1760966134292.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2189208%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LPCScrypt%20not%20running%20on%20Windows%2011%2025H2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189208%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20recently%20upgraded%20from%20Win10%20to%20Win11%2025H2.%3C%2FP%3E%3CP%3EBut%20so%20far%2C%20I%20have%20not%20seen%20an%20issue%20with%20LPCScrypt%20(yet).%20Using%20the%20one%20packaged%20with%20LinkServer%20v25.9.134%20(see%20below)%3C%2FP%3E%3CP%3EUpdating%20my%20LPC-Link2%20with%20LPCScrypt%20worked%20fine.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ErichStyger_0-1760965172059.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ErichStyger_0-1760965172059.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F361659iD5F2A673AC9C7038%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ErichStyger_0-1760965172059.png%22%20alt%3D%22ErichStyger_0-1760965172059.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ENot%20an%20expert%20on%20WMIC%2C%20but%20according%20to%20the%20information%20it%20is%20gone%20in%2025H2%2C%20chatGTP%20suggested%20to%20copy%20wmic.exe%20and%20wmic.exe.mui%20from%20an%20older%20Windows%20version%20to%2025H2.%3C%2FP%3E%3CP%3ENXP%20is%20aware%20of%20the%20issue%2C%20and%20there%20might%20be%20an%20updated%20LPCScrypt%20in%20a%20next%20LinkServer%20release.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2189143%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LPCScrypt%20not%20running%20on%20Windows%2011%2025H2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189143%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F173246%22%20target%3D%22_blank%22%3E%40mathiasmonse%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20question.%3C%2FP%3E%0A%3CP%3EIf%20WMIC%20support%20is%20removed%2C%20yes%2C%20you%20can%20try%20to%20install%20it.%20Or%26nbsp%3B%20use%20an%20earlier%20Windows%20version%20or%20to%20run%20LPCScrypt%20on%20Linux%20or%20macOS.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EAlice%3C%2FP%3E%3C%2FLINGO-BODY%3E