Get-PnPContentTypePublishingHubUrl

Returns the url to Content Type Publishing Hub

Syntax

Get-PnPContentTypePublishingHubUrl
   [-Connection <SPOnlineConnection>]

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:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False