Remove-EmcCifsSharedFolderMountPoint

Removes or unmounts a specified shared folder.

 

Syntax

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

 

Parameters

-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.

 

<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 -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.