To quickly get a list of all drive letters in use, try this:
#requires -Version 1 [Environment]::GetLogicalDrives()
The result is a list of all active drive letters:
PS> C:\ D:\ E:\ F:\ G:\
To quickly get a list of all drive letters in use, try this:
#requires -Version 1 [Environment]::GetLogicalDrives()
The result is a list of all active drive letters:
PS> C:\ D:\ E:\ F:\ G:\