Accessing USB for FW upload and UART outputs in a windows container from a windows host

Hello,

Host Machine: Windows 10 Pro
Container image: Windows server code ltsc 2019

What am I trying to do: Access the devices connected to the host machine from the container for the purpose of uploading firmware and/or reading UART outputs.

According to the latest windows link (Jan 2025) :

Though, when I run that with the correct GUID:

docker run --isolation=process --device="class-forwardslash-{86E0D1E0-8089-11D0-9CE4-08003E301F73
}" mcr.microsoft.com/windows/servercore:ltsc2019

I get this error:

docker: Error response from daemon: invalid device assignment path: '.....class\{86E0D1E0-8089-11D0-9CE4-08003E301F73}', must be 'class-forwardslash-ID' or 'IDType-forwardslash-//ID'.
forwardslash= /

I have also tried it with the correct IDType and ID ( found from the device manager)

What am I doing wrong? Also, when I look for the specific GUID of my device and run it with that, I get the same error.

I know it is difficult to make this happen, but I believe with the latest changes this is now possible?

Please let me know. THank you

Why did you replace the “/” character with “-forwardslash-”? Assuming you had some formatting issue (added code blocks), what I ca see wrong is that you should probably not use the curly brackets at all. The documentation says

You must replace the {interface class guid} with an appropriate device interface class GUID, which can be found in the section below.

So you have to replace the whole placehlder, not just the comment between the brackets.

Hello Thanks for the reply.

the replacement of “/” was due to the error this forum was giving me as my account is new. It was taking the slashes as web address for somereason.

I tried your suggestion of executing the command without the {} , but it gave the same error.

Any idea why? or what can I be doing wrong?

You might be using a solution that doesn’t fit your problem :wink:

Docker containers were developed for Linux. Docker Desktop is a developer tool, mainly to run Linux containers. (In my view)

What do you want to achieve with your solution? Isolation of the process? Have you thought about using a tool like Sandboxie or a simple VM passing USB through?

Please share the new message. It cannot be the same witha different parameter. Use code blocks when you share the error. Formatting guide is here: How to format your forum posts

here is the screenshot
The powershell is in admin mode

The error message is clear. Slash and backslash is not the same.

Hey,

Thank you so much, My project is working now. Really appreciate it!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.