Removes or unmounts the specified volume.
Syntax
Remove-EmcVolumeMountPoint -Volume <Volume> -HostSystem <IHostSystem> [-Silent] [<CommonParameters>]
Remove-EmcVolumeMountPoint -Volume <Volume> [-Silent] -ClusterSystem <IClusterSystem> [<CommonParameters>]
Parameters
-Volume <Volume>
Attributes: Required, Position: named
Specifies the ESI volume object, which you can get from the ESI host system object or by using the Get-EmcHostVolume cmdlet.
-HostSystem <IHostSystem>
Attributes: Required, Position: named
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.
-Silent <SwitchParameter>
Attributes: Optional, Position: named
Turns off all the informational and verbose messages. However, it still displays errors.
-ClusterSystem <IClusterSystem>
Attributes: Required, Position: named
Specifies the ESI cluster system object. You can add a cluster system object to ESI by using the Get-EmcClusterSystemCredential and Connect-EmcSystem cmdlets. You can get a cluster system object by using the Get-EmcClusterSystem cmdlet.
<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>$h | Update-EmcSystem -Silent
C:\PS>$h.HostVolumes[5].mountpath
F:\
C:\PS>$h.HostVolumes[5].HostVolumeIdentifier
\\?\GLOBALROOT\Device\HarddiskVolume6
C:\PS>Remove-EmcVolumeMountPoint -Volume $h.HostVolumes[5] -HostSystem $h
TaskStatus: Started
10% : Unmounting the volume...
100% : The specified volume has been unmounted...
TaskStatus: Completed
C:\PS>$h.HostVolumes[5].mountpath
C:\PS>$h.HostVolumes[5].HostVolumeIdentifier
\\?\GLOBALROOT\Device\HarddiskVolume6
C:\PS>
This example unmounts the specified volume.