Set-WssMediaLibraryInclusion
Set-WssMediaLibraryInclusion
Includes or excludes a shared folder from the Media Library.
構文
Parameter Set: Default
Set-WssMediaLibraryInclusion [-Share] <MediaStreamingSharedFolder> [-Enable] <Boolean> [ <CommonParameters>]
詳細説明
The Set-WssMediaLibraryInclusion cmdlet includes a shared folder in, or excludes a shared folder from, the Media Library for the current server.
パラメーター
-Enable<Boolean>
Indicates whether the cmdlet includes or excludes the specified folder from the Media Library. Specify a value of $True to include the folder in the Media Library. Specify a value of $False to exclude the folder.
エイリアス |
なし |
必須? |
true |
位置は? |
2 |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Share<MediaStreamingSharedFolder>
Specifies a shared folder on the server.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Exclude a shared folder from the Media Library
This example excludes a shared folder from the Media Library. The first command uses the Get-WssMediaSharedFolder cmdlet to get the shared folders for the current server, and then stores them in the $MediaFolders variable. In this example, the server has more than one folder in the Media Library, so $MediaFolders contains an array.
The second command excludes a folder from the Media Library. The command specifies a value of $False for the Enable parameter. The command uses standard array syntax to specify the first member of the array stored in the $MediaFolders variable.
PS C:\> $MediaFolders = Get-WssMediaSharedFolder
PS C:\> Set-WssMediaLibraryInclusion -Share $MediaFolders[0] -Enable $False