Set-WssMediaLibraryInclusion

Set-WssMediaLibraryInclusion

Includes or excludes a shared folder from the Media Library.

Sintaxis

Parameter Set: Default
Set-WssMediaLibraryInclusion [-Share] <MediaStreamingSharedFolder> [-Enable] <Boolean> [ <CommonParameters>]

Descripción detallada

The Set-WssMediaLibraryInclusion cmdlet includes a shared folder in, or excludes a shared folder from, the Media Library for the current server.

Parámetros

-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.

Alias

ninguno

¿Requerido?

true

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-Share<MediaStreamingSharedFolder>

Specifies a shared folder on the server.

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue)

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

Ejemplos

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

Temas relacionados

Get-WssMediaSharedFolder

Get-WssMediaServerEnabled

Get-WssMediaLibraryName