Remove-SCACShare
Applies To: System Center 2012 R2 App Controller
Remove-SCACShare
Removes a library share.
Syntax
Parameter Set: Default
Remove-SCACShare [-Share] <ACLibraryFileShare> [-PassThru] [ <CommonParameters>]
Detailed Description
The Remove-SCACShare cmdlet removes a specified library share.
Parameters
-PassThru
Returns a share path object. By default, this cmdlet does not generate output.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Share<ACLibraryFileShare>
Specifies a library file share.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<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: Remove a library share
The first command gets the library share object named \\LibraryServer\LibraryShare and stores it in the $Share variable.
The second command removes the library share stored in $Share.
PS C:\> Get-SCACShare | where {$_.SharePath -eq \\LibraryServer\LibraryShare}
PS C:\> Remove-SCACShare -Share $Share