MrPig91 / PSChiaPlotter

A repo for powershell module that helps Chia Plotting
MIT License
181 stars 47 forks source link

Mapped Drive Support #56

Closed sk00t3r closed 3 years ago

sk00t3r commented 3 years ago

This is UNTESTED. I saw others asking for this feature, and thought that this will either work, or at the very least help. If I can snag some free time I will test and contribute more. Thank you.

sk00t3r commented 3 years ago

You can also get this script down to ~24 lines by using the "Get-WmiObject -Class Win32_Logicaldisk" command which will see mapped drives as well. However I have not found a decent way to get the BusType with just using this command. It will output all the other needed fields and "DriveType" 2, 3, 4, or 5 which equates to the following:

2 = "Removable disk" 3 = "Fixed local disk" 4 = "Network disk" 5 = "Compact disk