Connecting USB in WSL when Windows Admin is a separate account #282
Replies: 7 comments 13 replies
-
@janegilruud
|
Beta Was this translation helpful? Give feedback.
-
I just faced the same thing,... A couple of questions:
Best Regards. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Yea. I do the registry hack already. Just won’t work in this case |
Beta Was this translation helpful? Give feedback.
-
How do I find out my |
Beta Was this translation helpful? Give feedback.
-
I have been able to get this to work on a non-admin account. But two things must be established:
With WSL it's basically 'like for like' which is interesting since I ran into the issue of being in the Admin account and not able to see distros loaded in other accounts. |
Beta Was this translation helpful? Give feedback.
-
If you are struggling with the sudo usbip attach -r `hostname`.local --busid=<bus-id> |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I just wanted to share my experience when trying to use usbipd-win to connect to a USB tool in WSL2 on my corporate Windows PC where the admin rights are in a separate account. I found bits and pieces in different places, so I thought I'd collect them in one place. I started out with this description: https://devblogs.microsoft.com/commandline/connecting-usb-devices-to-wsl/
The command
usbipd wsl attach --busid <busid>
won't work since my regular user don't have admin rights, and my Admin account doesn't see the WSL distro. The solution is to split this command in two:usbipd bind --busid <busid> --force
. If you don't use--force
the next step will fail with a "Device busy" error.wsl --shutdown
in a CommandPrompt or PowerShell). Then in WSL runsudo usbip attach -r $HOSTNAME.local --busid=<bus-id>
. (Withoutsudo
you will get an "Import Error".)Beta Was this translation helpful? Give feedback.
All reactions