title: Getting a free drive letter
body: <p>I saw the <code>Get-NextFreeDrive</code> function in <a href="https://stackoverflow.com/questions/8799643/map-the-share-to-unassigned-drive-letter-in-powershell/8799797#8799797">this answer</a> and I wondered if there was a more efficient way to do this. It appears that the function in the linked answer keeps going through all the letters even if it has already found a free drive letter.</p>