Get-SCStorageFileShare

Gets a storage file share.

Syntax

Get-SCStorageFileShare [[-Name] <String>] [-All] [-VMMServer <ServerConnection>] [<CommonParameters>]
Get-SCStorageFileShare [[-Name] <String>] [-ID <Guid>] [-VMMServer <ServerConnection>] [<CommonParameters>]
Get-SCStorageFileShare [[-Name] <String>] -LibraryServer <LibraryServer> [-VMMServer <ServerConnection>]
 [<CommonParameters>]
Get-SCStorageFileShare [[-Name] <String>] -VMHost <Host> [-VMMServer <ServerConnection>] [<CommonParameters>]
Get-SCStorageFileShare [[-Name] <String>] -VMHostCluster <HostCluster> [-VMMServer <ServerConnection>]
 [<CommonParameters>]

Description

The Get-SCStorageFileShare cmdlet gets a storage file share from the Virtual Machine Manager (VMM) database.

Examples

Example 1: Get a storage file share by its name

PS C:\> $FileShare = Get-SCStorageFileShare -Name "FileShare01" 
PS C:\> $FileShare

The first command gets the storage file share object named FileShare01 and stores the object in the $FileShare variable.

The second command displays information about the storage file share stored in FileShare01.

Parameters

-All

Indicates that this cmdlet gets all subordinate objects independent of the parent object. For example, the command Get-SCVirtualDiskDrive -All gets all virtual disk drive objects regardless of the virtual machine object or template object that each virtual disk drive object is associated with.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ID

Specifies the numerical identifier as a globally unique identifier, or GUID, for a specific object.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-LibraryServer

Specifies a VMM library server object.

Type:LibraryServer
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Specifies the name of a VMM object.

Type:String
Required:False
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMHost

Specifies a virtual machine host object. VMM supports Hyper-V hosts, VMware ESX hosts, and Citrix XenServer hosts.

For more information about each type of host, see the Add-SCVMHost cmdlet.

Type:Host
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-VMHostCluster

Specifies a VMM host cluster object.

Type:HostCluster
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Outputs

StorageFileShare

This cmdlet returns a **StorageFileShare** object.