Get-PnPContentTypePublishingHubUrl

Tip

We encourage you to make improvements to this documentation. Please navigate to https://github.com/pnp/powershell/blob/dev/documentation/Get-PnPContentTypePublishingHubUrl.md to change this file.

Returns the url to Content Type Publishing Hub

Syntax

Get-PnPContentTypePublishingHubUrl
   [-Connection <PnPConnection>]
   [<CommonParameters>]

Examples

EXAMPLE 1

$url = Get-PnPContentTypePublishingHubUrl
Connect-PnPOnline -Url $url
Get-PnPContentType

This will retrieve the url to the content type hub, connect to it, and then retrieve the content types form that site

Parameters

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:PnPConnection
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False