SharePoint 元数据服务-PowerShell

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 http://sp2010

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
上一篇:LeetCode 7 -- String to Integer (atoi)


下一篇:《C语言程序设计:问题与求解方法》——3.3节逐步求精的伪代码