Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Use automation dll to attach all devices that are connected+bound but not attached #944

Open
daantimmer opened this issue May 6, 2024 · 1 comment

Comments

@daantimmer
Copy link

daantimmer commented May 6, 2024

I am trying to use the automation dll (Get-UsbIpdDevice) to attach all devices that are currently connected and bound, but not attached. But I am unable to go from 'Get-UsbipdDevice' context to something that can invoke usbipd attach --wsl --hardware-id ???.

Get-UsbipdDevice | Where-Object {$_.IsConnected -and $_.IsBound -and -not $_.IsAttached} | <what do I put here to invoke> | usbipd attach --wsl --hardware-id <hardwareid from cmdlet entry/ies>
@dorssel
Copy link
Owner

dorssel commented May 7, 2024

Get-UsbipdDevice | Where-Object {$_.IsConnected -and $_.IsBound -and -not $_.IsAttached} | ForEach-Object { usbipd attach --wsl --busid $_.BusId }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants