Get-SCACShare

Applies To: System Center 2012 R2 App Controller

Get-SCACShare

Gets all shares in App Controller.

Syntax

Get-SCACShare [ <CommonParameters>]

Detailed Description

The Get-SCACShare cmdlet gets all shares that have been added to App Controller. Both library shares and shares added as temporary storage are returned.

To add a library share, use the Add-SCACShare cmdlet.

Parameters

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Get all shares in App Controller

This command returns all shares in App Controller.

PS C:\> Get-SCACShare

Example 2: Get a specific share by its name

The first command gets the library share object named \\LibraryServer\LibraryShare and stores the object in the $Share variable.

The second command displays the information stored about the library share in $Share to the user.

PS C:\> $Share = Get-SCACShare | where {$_.SharePath -eq "\\LibraryServer\LibraryShare"}
PS C:\> $Share

Add-SCACShare

Remove-SCACShare