Removes or unmounts a specified shared folder.



Remove-EmcCifsSharedFolderMountPoint -HostSystem <IHostSystem> -SharedFolder <CifsNetworkShare> [-Silent] [<CommonParameters>]



-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 the object by using the Get-EmcHostSystem cmdlet. The object can be a stand alone host system, a virtual machine, or a hypervisor.


-SharedFolder <CifsNetworkShare>

Attributes: Required, Position: named

Specifies the ESI network share object, which you can get from the ESI host system object or by using the Get-EmcCifsNetworkShare cmdlet.


-Silent <SwitchParameter>

Attributes: Optional, Position: named

Turns off all the informational and verbose messages. However, it still displays errors.



This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.



-------------- Example 1 --------------

C:\PS>$h = Get-EmcHostSystem -ID *.136*

C:\PS>$s = Get-EmcCifsNetworkShare -HostSystem $h -ID *T:*


C:\PS>Remove-EmcCifsSharedFolderMountPoint -HostSystem $h -SharedFolder $s

This example unmounts the specified shared folder.