1. 获取元数据服务应用程序标识
Get-SPServiceApplication
2. 获取指定的元数据服务应用程序实例
$metadataApp = Get-SPMetadataServiceApplication-Identity f3e6d88a-e0a7-455c-bbef-b4942e7607b5
3. 配置元数据服务账户
Set-SPMetadataServiceApplication –Identity "Managed Metadata Service" –AdministratorAccount "SP\Administrator"-FullAccessAccount "SP\MDSFullAccess"–RestrictedAccount "SP\MDSRestricted"–ReadAccessAccount "SP\ReadAccess1,SP\ReadAccess2"
4. 配置术语存储数据库
Set-SPMetadataServiceApplication –Identity "Managed Metadata Service" –DatabaseName TermStoreDB
5. 配置内容类型中心
Set-SPMetadataServiceApplication –Identity "Managed Metadata Service" –HubUri
6. 获取元数据服务代理标识
Get-SPServiceApplicationProxy
7. 获取指定的元数据服务应用程序代理实例
$metadataProxy = Get-SPMetadataServiceApplication Proxy-Identity f3e6d88a-e0a7-455c-bbef-b4942e7607b5
8. 配置元数据服务连接选项
Set-SPMetadataServiceApplicationProxy-Identity "Managed Metadata Service"–DefaultKeywordTaxonomy –DefaultSiteCollectionTaxonomy–ContentTypeSyndicationEnabled:$false–ContentTypePushdownEnabled:$false