Gets the list of shared folders available from a CIFS storage system.
Syntax
Get-EmcSharedFolder [[-ID] <String>] [-CifsStorageSystem <ICifsStorageSystem>] [-Silent] [<CommonParameters>]
Get-EmcSharedFolder [[-ID] <String>] [-Silent] -Pool <StoragePool> [<CommonParameters>]
Get-EmcSharedFolder [[-ID] <String>] [-Silent] -NetworkShare <CifsNetworkShare> [<CommonParameters>]
Parameters
-ID <String>
Attributes: Optional, Position: 1
Specifies the shared folder name, array pool ID, or shared folder ID. Wildcards are permitted. It is a positional parameter (position = 1).
-CifsStorageSystem <ICifsStorageSystem>
Attributes: Optional, Position: named
Specifies the ESI storage system object, which you can add to ESI by using the Get-EmcStorageSystemCredential and Connect-EmcSystem cmdlets. You can get the object by using the Get-EmcStorageSystem cmdlet. The storage system type for this cmdlet must be a CIFS file storage system.
-Silent <SwitchParameter>
Attributes: Optional, Position: named
Turns off all the informational and verbose messages. However, it still displays errors.
-Pool <StoragePool>
Attributes: Required, Position: named
Specifies the ESI storage pool object, which you can get from the ESI storage system or by using Get-EmcStoragePool cmdlet. The storage pool for this cmdlet must be of the File type.
-NetworkShare <CifsNetworkShare>
Attributes: Required, Position: named
Specifies the network share used by a host system, which you can get from ESI by using the Get-EmcCifsNetworkShare 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>Get-EmcSharedFolder -id *myFolder*
This example gets the list of all the shared folders with the specified name.
-------------- Example 2 --------------
C:\PS>$s = Get-EmcStorageSystem
Get-EmcSharedFolder -CifsStorageSystem $s[0]
This example gets the list of all the shared folders from the specified storage system.
-------------- Example 3 --------------
C:\PS>$s = Get-EmcStorageSystem
C:\PS>$p = Get-EmcStoragePool -StorageSystem $s[0] -PoolType File
C:\PS>Get-EmcSharedFolder -Pool $p[3]
This example gets the list of all the shared folders from the specified file storage pool.
-------------- Example 4 --------------
C:\PS>$s = Get-EmcHostSystem
C:\PS>$p = Get-EmcCifsNetworkShare -HostSystem $s[1]
C:\PS>Get-EmcSharedFolder -NetworkShare $p
This example gets the shared folder from the specified CIFS network share mount object.