Find available drive letter with PowerShell

Hello,

You can findĀ  available drive letter with this oneliner :

Get-ChildItem function:[e-z]: -Name | Where { !(Test-Path $_ )}

This can be useful if you need to automatically map a network share.

Leave a Reply