Cómo cambiar la URL de cobro del sitio (Hub de tipo de contenido) en la aplicación de servicio de metadatos administrados
Pregunta
en Application Management -> Manage Service Applications -> Managed Metadata Service
.Seleccione administrar el servicio de metadatos y haga clic en Propiedades .En la ventana Propiedades, he agregado URL de colección de sitios para el concentrador de tipo de contenido y ha probado los tipos de contenido en varios sitios.Pero ahora quiero cambiar la URL de colección de sitios para el hub de tipo de contenido.¿Cómo cambio esto?
Solución
Puedes cambiarlo a través de PowerShell.Vea este artículo (enlace muerto, 2019): http://www.sharepointanalysthq.com/2010/11/how-to-change-the-content-type-hub-url/
Enlace archivado: http://web.archive.org/web/20110119230901/http://www.sharepointanalysthq.com/2010/11/how-to-change-the-content-Tipo-HUB-URL /
Básicamente, muestran cómo usar este cmdlet:
Set-SPMetadataServiceApplication -Identity "<ServiceApplication>" -HubURI "<HubURI>"
Otros consejos
Tengo esta pequeña función de PowerShell Puedes probarlo ...
function SetManagedMetadaService
{
Param(
[parameter(Mandatory=$true)][string]$ServiceName,
[parameter(Mandatory=$true)][string]$HubSiteUrl
)
Write-Host "Setting contenttype hub Url"
#Get-SPServiceApplication | ForEach-Object {
# if ($_.TypeName -eq $ServiceName) { $MetadataInstance = $_ }
#}
$MetadataInstance = Get-SPServiceApplication -Name "Managed Metadata Service"
Set-SPMetadataServiceApplication -Identity $MetadataInstance -HubURI $hubSiteUrl
Write-Host -f yellow "Setting Proxy Metadata Service Options"
# Get Metadata service application proxy
$metadataserviceapplicationproxy = get-spmetadataserviceapplicationproxy $ServiceName
# This service application is the default storage location for Keywords.
$metadataserviceapplicationproxy.Properties["IsDefaultKeywordTaxonomy"] = $true
# This service application is the default storage location for column specific term sets.
$metadataserviceapplicationproxy.Properties["IsDefaultSiteCollectionTaxonomy"] = $true
# Consumes content types from the Content Type Gallery
$metadataserviceapplicationproxy.Properties["IsNPContentTypeSyndicationEnabled"] = $true
# Push-down Content Type Publishing updates from the Content Type Gallery
# to sub-sites and lists using the content type.
$metadataserviceapplicationproxy.Properties["IsContentTypePushdownEnabled"] = $true
$metadataserviceapplicationproxy.update()
}
y, recuerde cargar el ajuste de SharePoint en ...
$snapin = Get-PSSnapin | Where-Object {$_.Name -eq 'Microsoft.SharePoint.Powershell'}
if ($snapin -eq $null)
{
Write-Host "Loading SharePoint Powershell Snapin"
Add-PSSnapin "Microsoft.SharePoint.Powershell"
}