usbipd wsl
requires that user is a member of the Administrators group
#105
-
Hi, I followed all instructions to attach an USB device. I work on Windows 11 + WSL2 Ubuntu 18.04 + usbuipd-win V1.2 Some infomations:
In a PowerShell as admin, I can get the list:
In a CmdPrompt as user, I can get the list too:
But, when i want to attach an USB device, I get this error:
Thanks for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
Did you try command prompt as administrator? |
Beta Was this translation helpful? Give feedback.
-
Could you, from the same Admin Powershell terminal where you got:
run the following command:
and post the output? And have you installed WSL as a Windows Feature or from the Store Preview? |
Beta Was this translation helpful? Give feedback.
-
Very interesting. |
Beta Was this translation helpful? Give feedback.
-
In a PowerShell as User :
In a PowerShell as User with the command runas /env /user:[ADMIN ACCOUNT]
I can see a new commandPrompt with this :
And so, the USB device is not attached :
|
Beta Was this translation helpful? Give feedback.
-
@nicolas-cadio You must use an elevated command prompt: the terminal/prompt must be started with Administrator rights for the same user. If your WSL user account is not part of the Administrators group, then you cannot use |
Beta Was this translation helpful? Give feedback.
@nicolas-cadio
You cannot use the
usbipd wsl
subcommand running as another user. WSL instances are 'per-user'. That means that one user cannot see the WSL instances of another user. That's why you see don't see the WSL instances when yourunas <someone-else> usbipd wsl attach
.You must use an elevated command prompt: the terminal/prompt must be started with Administrator rights for the same user. If your WSL user account is not part of the Administrators group, then you cannot use
usbipd wsl attach
. You can, however, useusbipd bind
and then manually attach from within WSL usingusbip attach
as an alternative.