Created
July 5, 2022 19:12
-
-
Save therevoman/82b2e0a03939dd7b02389604158f4b30 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Finding drive with name that contains 'MP600'" | |
$device_id = (GET-CimInstance -query "SELECT deviceid from Win32_DiskDrive WHERE Caption like '%MP600%'").DeviceID | |
echo "Mounting drive $device_id to WSL" | |
C:\Users\nrevo\AppData\Local\Microsoft\WindowsApps\wsl.exe --mount $device_id --bare | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment