$serviceAppProxy = Get-SPServiceApplicationProxy | where { $_.Name -eq “Name of the service” }
$proxygroup = Get-SPServiceApplicationProxyGroup | where { $_.FriendlyName -eq “[default]” }
Add-SPServiceApplicationProxyGroupMember -Identity $proxygroup -Member $serviceAppProxy
Category Archives: Powershell
Creating Managed Metadata Service Application using PowerShell
In this article, we will go through the steps to create Managed Metadata. The steps are fairly simple but this is one piece which requires thorough planning based on the Organization’s taxonomy if defined great if not plan.
# URL for the content type hub
$ContentHub = “http://MyContentTypeHubURL“
# App pool name
$ManagedMetaDataAppPool = “ManagedMetaDataAppPool”
# DB for the Managed Metadata
$ServiceDB = “MetadataDB”
# Name of the managed metadata service Application
$ManagedMetadataName = “Managed Metadata Service”
# Get the first managed account
$ManagedAccount = Get-SPManagedAccount | select -First 1
# Creating the application pool
$ApplicationPool = Get-SPServiceApplicationPool $ManagedMetaDataAppPool -ErrorAction SilentlyContinue
if ($ApplicationPool -eq $null) {
$ApplicationPool = New-SPServiceApplicationPool -Name $ManagedMetaDataAppPool -Account $ManagedAccount
}
Continue reading
Configuring the working languages for the ManageMetadataService Application using PowerShell
# Configuring the languages for the ManageMetadataService.
$ContentHubURL = “http://mysiteurl ”
$ManagedMetadataName = “Managed Metadata Service”
$taxonomy = Get-SPTaxonomySession -Site $ContentHubURL
$termstore = $taxonomy.TermStores[$ManagedMetadataName]
$termstore.AddLanguage(1036)
$termstore.AddLanguage(1043)
$termstore.CommitAll()