Remove-SCACShare
Remove-SCACShare
Removes a library share.
構文
Parameter Set: Default
Remove-SCACShare [-Share] <ACLibraryFileShare> [-PassThru] [ <CommonParameters>]
詳細説明
The Remove-SCACShare cmdlet removes a specified library share.
パラメーター
-PassThru
Returns a share path object. By default, this cmdlet does not generate output.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Share<ACLibraryFileShare>
Specifies a library file share.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
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