Gets the available drive letters on a host system or a cluster system.
Syntax
Get-EmcAvailableDriveLetter [-HostSystem]
<IHostSystem> [-Silent]
[<CommonParameters>]
Get-EmcAvailableDriveLetter
[-Silent]
[-ClusterSystem] <IClusterSystem>
[<CommonParameters>]
Parameters
-HostSystem <IHostSystem>
Attributes: Required, Position: 1
Specifies the ESI host system object. You can add a host system object to ESI by using the Get-EmcHostSystemCredential and Connect-EmcSystem cmdlets. You can get a host system object by using the Get-EmcHostSystem cmdlet. The object can be a stand-alone host system, a virtual machine, or a hypervisor.
-ClusterSystem <IClusterSystem>
Attributes: Required, Position: 1
Specifies the ESI host system object. You can add a host system object to ESI by using the Get-EmcHostSystemCredential and Connect-EmcSystem cmdlets. You can get a host system object by using the Get-EmcHostSystem cmdlet. It can be a stand-alone host system, a virtual machine, or a hypervisor.
-Silent <SwitchParameter>
Attributes: Optional, Position: named
Turns off all the informational and verbose messages. However, it still displays errors.
<CommonParameters>
This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.
Examples
-------------- Example 1 --------------
C:\PS>$h = Get-EmcHostSystem *.148
C:\PS>$drives = Get-EmcAvailableDriveLetter -HostSystem $h
C:\PS>$drives[0]
G
C:\PS>$drives.count
20
This example gets the available drive letters from a host system.
-------------- Example 2 --------------
C:\PS>$c = Get-EmcClusterSystem
C:\PS>$drives = $c | Get-EmcAvailableDriveLetter
C:\PS>$drives.count
15
C:\PS>$drives[14]
Y
C:\PS>
This example gets the available drive letters from a cluster system.