Get-WssMsoSharePointLibrary
Get-WssMsoSharePointLibrary
Retrieves a library.
Sintaxis
Parameter Set: Default
Get-WssMsoSharePointLibrary [[-Name] <String> ] [[-Site] <SharePointSite> ] [ <CommonParameters>]
Descripción detallada
The Get-WssMsoSharePointLibrary cmdlet retrieves a library. A site stores the library.
Parámetros
-Name<String>
Specifies the name of a library. The cmdlet gets the library for the name that you specify. If you do not specify the Name parameter, the cmdlet returns libraries in the default team site that match other parameters.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue, ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-Site<SharePointSite>
Specifies a site. The cmdlet gets the library for the site that you specify. If you do not specify the Site parameter, the cmdlet returns libraries in the default team site that match other parameters.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
2 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByPropertyName) |
¿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.
System.String
Name
Type: System.String
Description: Name of the SharePoint library
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
- SharePointLibrary[]
Ejemplos
Example 1: Get a SharePoint library
The first command uses the Get-WssMsoSharePointSite cmdlet to get a site, and stores the result in the $Site variable.
The second command gets the SharePoint Online library for the site specified in the $Site variable.
PS C:\> $Site = Get-WssMsoSharePointSite | Select-Object -First 1
PS C:\> Get-WssMsoSharePointLibrary -Name "Documents" -Site $Site
PS C:\>