Windows 11 serial driver issue

Hello.
Recently I tried plugging in my Mbed LPC1768 into my windows 11 laptop but the security policy was preventing my laptop from recognising the device I plugged in. Sometimes I was able to see the MBED directory in my file explorer and sometimes not.
I am also not able to find Ports (COM & LPT) section in the Device Manager. I can only see mbed Composite Device and it also has an error “Windows cannot load the device driver for this hardware. The hardware may be corrupted or missing (Code 39)” . This problem is not occurring on my Windows 7 system.
It was working fine just about a week ago but this problem has started to occur recently.

It’s my request to the Mbed team to kindly look into this issue.

i found a solution after a long… hope this post will be useful to many,The error in your screenshot is Code 39, but the important part is the second message:

“An Application Control policy has blocked this file.”

This means Windows has blocked the MBED serial driver, not that the driver is corrupt. This is common on recent Windows 11 updates where older MBED serial drivers are blocked by Microsoft’s Driver Blocklist or your organization’s Application Control (WDAC/AppLocker) policy.

solution: Use the Windows USB Serial Driver (CDC-ACM)

If your LPC1768 firmware supports USB CDC (many newer MBED firmwares do), you do not need the MBED serial driver.

  1. Open Device Manager.

  2. Right-click the mbed Serial Port.

  3. Select Update driver.

  4. Browse my computer for drivers.

  5. Let me pick from a list of available drivers.

  6. Choose

    USB Serial Device (Microsoft) …this worked