Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies To: System Center 2012 R2 App Controller
Removes a library share.
Parameter Set: Default
Remove-SCACShare [-Share] <ACLibraryFileShare> [-PassThru] [ <CommonParameters>]
The Remove-SCACShare cmdlet removes a specified library share.
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 |
Specifies a library file share.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
The input type is the type of the objects that you can pipe to the cmdlet.
The output type is the type of the objects that the cmdlet emits.
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