Connecting USB in WSL when Windows Admin is a separate account #282
janegilruud
started this conversation in
General
Replies: 7 comments 13 replies
|
@janegilruud
|
1 reply
|
I just faced the same thing,... A couple of questions:
Best Regards. |
0 replies
|
5 replies
|
Yea. I do the registry hack already. Just won’t work in this case |
0 replies
|
How do I find out my |
6 replies
|
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. |
0 replies
|
If you are struggling with the sudo usbip attach -r `hostname`.local --busid=<bus-id> |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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--forcethe next step will fail with a "Device busy" error.wsl --shutdownin a CommandPrompt or PowerShell). Then in WSL runsudo usbip attach -r $HOSTNAME.local --busid=<bus-id>. (Withoutsudoyou will get an "Import Error".)All reactions