< Back

Get-ContentLibrary

Sun Jan 19, 2020 6:49 pm

NAME Get-ContentLibrary



SYNOPSIS

This cmdlet creates a new local or subscribed content library.





SYNTAX

Get-ContentLibrary [-Confirm] -Id <String[]> [-Server <VIServer[]>] [-WhatIf] [<CommonParameters>]



Get-ContentLibrary [[-Name] <String[]>] [-Confirm] [-Local] [-Server <VIServer[]>] [-Subscribed] [-WhatIf]

[<CommonParameters>]





DESCRIPTION

This cmdlet retrieves content libraries and returns a set of content libraries that correspond to the filter

criteria defined by the cmdlet parameters.





PARAMETERS

-Confirm [<SwitchParameter>]

If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false,

the cmdlet runs without asking for user confirmation.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Id <String[]>

Specifies the IDs of the content libraries you want to retrieve.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Local [<SwitchParameter>]

Specifies that you want to retrieve only the local content libraries.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Name <String[]>

Specifies the names of the content libraries you want to retrieve.



Required? false

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-Server <VIServer[]>

Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this

parameter, the command runs on the default servers. For more information about default servers, see the

description of the Connect-VIServer cmdlet.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Subscribed [<SwitchParameter>]

Specifies that you want to retrieve only the subscribed content libraries.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are

modified.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None







OUTPUTS

Zero or more LocalContentLibrary or SubscribedContentLibrary objects







NOTES









-------------------------- Example 1 --------------------------



PS C:\\> Get-ContentLibrary



Retrieves all content libraries from the default connected servers.

-------------------------- Example 2 --------------------------



PS C:\\> Get-ContentLibrary -Local



Returns all local content libraries from the default connected servers.

-------------------------- Example 2 --------------------------



PS C:\\> Get-ContentLibrary -Name 'Local*'



Retrieves all content libraries whose name starts with 'Local' from the default connected servers.



RELATED LINKS