LPCScrypt not running on Windows 11 25H2

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPCScrypt not running on Windows 11 25H2

跳至解决方案
1,092 次查看
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 项奖励
回复
1 解答
1,063 次查看
mathiasmonse
Contributor II

Thank you for the information.

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

Regards,

Mathias

 

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,070 次查看
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 项奖励
回复
1,066 次查看
ErichStyger
Specialist I

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

ErichStyger_0-1760966134292.png

 

0 项奖励
回复
1,027 次查看
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 项奖励
回复
1,079 次查看
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 项奖励
回复
1,064 次查看
mathiasmonse
Contributor II

Thank you for the information.

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

Regards,

Mathias

 

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2189005%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELPCScrypt%20%E6%97%A0%E6%B3%95%E5%9C%A8%20Windows%2011%2025H2%20%E4%B8%8A%E8%BF%90%E8%A1%8C%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%E7%89%88%E6%9C%AC2.1.3_83%5D%3C%2FP%3E%3CP%3E%E4%B8%BA%E4%BA%86%E5%90%AF%E5%8A%A8%E5%92%8C%E5%88%B7%E6%96%B0%E6%97%A7%E7%9A%84%20LPC1857%EF%BC%8C%E6%88%91%E4%BB%AC%E4%BD%BF%E7%94%A8%20lpcsCrypt%20%E6%9D%A5%E6%9B%B4%E6%96%B0%E8%AE%BE%E5%A4%87%E5%9B%BA%E4%BB%B6%E3%80%82%3C%2FP%3E%3CP%3E%E8%87%AA%20Windows%2011%2025H2%20%E8%B5%B7%EF%BC%8CLPCScrypt%20%E5%B0%B1%E5%9D%8F%E4%BA%86%EF%BC%9A%E5%9C%A8%E5%91%BD%E4%BB%A4%E8%A1%8C%EF%BC%88%E5%8D%B3%20PowerShell%EF%BC%89%E4%B8%8A%E8%B0%83%E7%94%A8%E5%AE%83%E4%BC%9A%E5%AF%BC%E8%87%B4%22%E9%94%99%E8%AF%AF%EF%BC%9A%E6%9D%A5%E8%87%AA%20CreateProcess%20%E7%9A%84%E9%94%99%E8%AF%AF%EF%BC%9A%E7%B3%BB%E7%BB%9F%E6%97%A0%E6%B3%95%E6%89%BE%E5%88%B0%E6%8C%87%E5%AE%9A%E7%9A%84%E6%96%87%E4%BB%B6%22%3C%2FP%3E%3CP%3ESysinternal%20%E7%9A%84%20Process%20%E7%9B%91%E6%B5%8B%20%E5%81%87%E8%AE%BE%20LpcsCrypt%20%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%20%22%20wmic%20%E8%B7%AF%E5%BE%84%20win32_pnPentity%20%E6%89%A7%E8%A1%8C%20wmi%20%E6%9F%A5%E8%AF%A2%EF%BC%8C%E5%85%B6%E4%B8%AD%EF%BC%88%E5%83%8F%20'%25usbser%25'%20%E8%BF%99%E6%A0%B7%E7%9A%84%E6%9C%8D%E5%8A%A1%EF%BC%8C%E5%83%8F%20'%25lpc%25'%20%E8%BF%99%E6%A0%B7%E7%9A%84%E5%90%8D%E7%A7%B0%EF%BC%89get.exe%20%22%E3%80%82%3C%2FP%3E%3CP%3E%E4%BD%86%E6%98%AF%EF%BC%8Cwmic%20%E5%B7%B2%E4%BA%8E%202016%20%E5%B9%B4%E5%AE%A3%E5%B8%83%E5%BC%83%E7%94%A8%EF%BC%8C%E5%B9%B6%E5%B7%B2%E4%BA%8E%2025H2%20%E8%B5%B7%E4%BB%8E%20Windows%2011%20%E4%B8%AD%20%E7%A7%BB%E9%99%A4%20%EF%BC%88%E8%AF%B7%E5%8F%82%E9%98%85%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%3E%20Windows%20Management%20Instrumentation%20Command-line%20(WMIC)%20removal%20from%20Windows%20-%20Microsoft%20Support%EF%BC%89%3C%2FA%3E%20%E3%80%82%3C%2FP%3E%3CP%3E%E8%AF%B7%E6%B1%82%E6%81%A9%E6%99%BA%E6%B5%A6%E5%BC%80%E5%8F%91%E5%9B%A2%E9%98%9F%E8%A7%A3%E5%86%B3%EF%BC%9A%E8%BF%99%E4%B8%AA%E9%97%AE%E9%A2%98%E6%98%AF%E5%90%A6%E5%B7%B2%E8%A2%AB%E5%8F%91%E7%8E%B0%EF%BC%9F%E5%A6%82%E4%BD%95%E8%AE%A9%E5%AE%83%E5%9C%A8%E6%9C%AA%E6%9D%A5%E5%8F%91%E6%8C%A5%E4%BD%9C%E7%94%A8%EF%BC%9F%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%3E%E4%BD%A0%E5%A5%BD%EF%BC%8CErichStyger%EF%BC%8C%E4%BD%A0%E8%AF%B4%E5%BE%97%E6%B2%A1%E9%94%99%E3%80%82%E4%BB%8E%20Windows%2010%20%E5%8D%87%E7%BA%A7%E5%90%8E%EF%BC%8Cwmic%20%E5%B0%86%E4%BF%9D%E7%95%99%E5%9C%A8%20Windows%2011%20%E4%B8%AD%E3%80%82%3CBR%20%2F%3E%E4%BD%86%E6%88%91%E4%B8%8D%E5%BE%97%E4%B8%8D%E9%87%8D%E6%96%B0%E5%AE%89%E8%A3%85%20Windows%2011%20%E7%B3%BB%E7%BB%9F%EF%BC%8C%E7%BB%93%E6%9E%9C%E9%81%87%E5%88%B0%E4%BA%86%E8%BF%99%E4%B8%AA%E9%97%AE%E9%A2%98%E3%80%82%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%3E%E6%84%9F%E8%B0%A2%E6%82%A8%E6%8F%90%E4%BE%9B%E7%9A%84%E4%BF%A1%E6%81%AF%E3%80%82%3C%2FP%3E%3CP%3E%E6%88%91%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95%E6%98%AF%E5%9C%A8%20Windows%2011%20%E4%B8%AD%E6%B7%BB%E5%8A%A0%20wmic%20%E6%94%AF%E6%8C%81%EF%BC%8C%E5%85%B7%E4%BD%93%E5%A6%82%E4%B8%8B%3C%2FP%3E%3CUL%3E%3CLI%3E%E4%BB%A5%E7%AE%A1%E7%90%86%E5%91%98%E8%BA%AB%E4%BB%BD%E6%89%93%E5%BC%80%E7%B3%BB%E7%BB%9F%E8%AE%BE%E7%BD%AE%EF%BC%8C%E8%BF%9B%E5%85%A5%E5%8F%AF%E9%80%89%E5%8A%9F%E8%83%BD%EF%BC%88...%20%E6%9B%B4%E5%A4%9A%E5%8A%9F%E8%83%BD...%EF%BC%89%E5%B9%B6%E6%B7%BB%E5%8A%A0%20wmic%3C%2FLI%3E%3CLI%3E%E6%88%96%E4%BD%BF%E7%94%A8%22%20DISM%3CSPAN%3E%2FOnline%20%2FAdd-Capability%20%2FCapabilityName%3AWMIC%3C%2FSPAN%3E%22%20%5B%E8%AF%B7%E5%8F%82%E9%98%85%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%3E%E5%B0%86%20WMIC%20%E5%AE%89%E8%A3%85%E5%88%B0%20Windows%2011%20%E8%AE%A1%E7%AE%97%E6%9C%BA%20-%20Microsoft%20Q%26amp%3B%3C%2FA%3E%20A%5D%20%E3%80%82%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%E6%AD%A4%E8%87%B4%EF%BC%8C%3C%2FP%3E%3CP%3E%E9%A9%AC%E8%92%82%E4%BA%9A%E6%96%AF%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%3E%E5%8F%AF%E8%83%BD%E6%98%AF%E5%9B%A0%E4%B8%BA%E6%88%91%E5%B7%B2%E7%BB%8F%E4%BB%8E%20Win10%20%E5%8D%87%E7%BA%A7%E5%88%B0%E4%BA%86%20Win11%EF%BC%8C%E6%88%91%E7%9A%84%E6%9C%BA%E5%99%A8%E4%B8%8A%E4%BB%8D%E7%84%B6%E6%9C%89%20WMIC%EF%BC%9A%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%3E%E6%88%91%E6%9C%80%E8%BF%91%E4%BB%8E%20Win10%20%E5%8D%87%E7%BA%A7%E5%88%B0%E4%BA%86%20Win11%2025H2%E3%80%82%3C%2FP%3E%3CP%3E%E4%BD%86%E5%88%B0%E7%9B%AE%E5%89%8D%E4%B8%BA%E6%AD%A2%EF%BC%8C%E6%88%91%E8%BF%98%E6%B2%A1%E6%9C%89%E7%9C%8B%E5%88%B0%20LPCScrypt%20%E5%87%BA%E7%8E%B0%E9%97%AE%E9%A2%98%EF%BC%88%E5%B0%9A%E6%9C%AA%EF%BC%89%E3%80%82%E4%BD%BF%E7%94%A8%20LinkServer%20v25.9.134%20%E4%B8%AD%E4%BB%A3%E7%A0%81%E5%8C%85%E7%9A%84%E9%82%A3%E4%B8%AA%EF%BC%88%E8%A7%81%E4%B8%8B%E6%96%87%EF%BC%89%3C%2FP%3E%3CP%3E%E7%94%A8%20LPCScrypt%20%E6%9B%B4%E6%96%B0%E6%88%91%E7%9A%84%20LPC-Link2%20%E8%BF%90%E8%A1%8C%E6%AD%A3%E5%B8%B8%E3%80%82%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%3E%E6%88%91%E4%B8%8D%E6%98%AF%20WMIC%20%E6%96%B9%E9%9D%A2%E7%9A%84%E4%B8%93%E5%AE%B6%EF%BC%8C%E4%BD%86%E6%A0%B9%E6%8D%AE%E4%BF%A1%E6%81%AF%EF%BC%8C%E5%AE%83%E5%9C%A8%2025H2%20%E4%B8%AD%E6%B6%88%E5%A4%B1%E4%BA%86%EF%BC%8CchatGTP%20%E5%BB%BA%E8%AE%AE%E5%B0%86%E6%97%A7%E7%89%88%E6%9C%AC%20Windows%20%E4%B8%AD%E7%9A%84%20wmic.exe%20%E5%92%8C%20wmic.exe.mui%20%E5%A4%8D%E5%88%B6%E5%88%B0%2025H2%E3%80%82%3C%2FP%3E%3CP%3E%E6%81%A9%E6%99%BA%E6%B5%A6%E5%B7%B2%E7%BB%8F%E6%84%8F%E8%AF%86%E5%88%B0%E4%BA%86%E8%BF%99%E4%B8%AA%E9%97%AE%E9%A2%98%EF%BC%8C%E4%B8%8B%E4%B8%80%E4%B8%AALinkServer%E7%89%88%E6%9C%AC%E4%B8%AD%E5%8F%AF%E8%83%BD%E4%BC%9A%E6%9C%89%E6%9B%B4%E6%96%B0%E7%9A%84LPCsCrypt%E3%80%82%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%3E%E4%BD%A0%E5%A5%BD%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%3C%2FP%3E%0A%3CP%3E%E6%84%9F%E8%B0%A2%E6%82%A8%E7%9A%84%E6%8F%90%E9%97%AE%E3%80%82%3C%2FP%3E%0A%3CP%3E%E5%A6%82%E6%9E%9C%20WMIC%20%E6%94%AF%E6%8C%81%E8%A2%AB%E7%A7%BB%E9%99%A4%EF%BC%8C%E5%8F%AF%E4%BB%A5%E5%B0%9D%E8%AF%95%E5%AE%89%E8%A3%85%E3%80%82%E6%88%96%E8%80%85%E4%BD%BF%E7%94%A8%E6%97%A9%E6%9C%9F%E7%9A%84%20Windows%20%E7%89%88%E6%9C%AC%EF%BC%8C%E6%88%96%E8%80%85%E5%9C%A8%20Linux%20%E6%88%96%20macOS%20%E4%B8%8A%E8%BF%90%E8%A1%8C%20LPCScrypt%E3%80%82%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3E%E7%88%B1%E4%B8%BD%E4%B8%9D%3C%2FP%3E%3C%2FLINGO-BODY%3E