Waits for any WSL distribution starts, if anyone distributions are running, this scripts will verify until any distributions starts.
- WSL
waitUntilWSL.ps1
Write-Output "Any WSL initiated"
Start automaticaly a USBIP attach to a device with a certain pattern description.
- waitUntilWSL.ps1**
- WSL
- USBIPD-WIN-4.2.0
Check the pattern that you want to use:
usbipd list
This will display any like this:
BUSID VID:PID DEVICE STATE
3-1 03da:ab41 USB Printing Support Not attached
First you will want bind the device with:
usbipd bind --hardware-id <VID:PID>`.
Now start the script using the pattern that you choose:
autoStartUSBIP.ps1 <VID:PID|DEVICE>
Note: This script uses
BurntToast
but it is not necessary!
If your windows are blocking you to run this scripts, you can do this:
Unblock-File -Path <script-path>
This is just a script to run autoStartUSBIP.ps1 hidden at the startup of Windows.
Edit and put this at user startup folder. (Windows + R
, shell:startup
)