Sorry for reviving this old post
I have the same issue as well. I need to create a new MMS for use for a different app. Currently AutoSPInstaller will not allow more than 1 MMS created as the function CreateMetadataServiceApp check on the SPServiceInstance type rather than the display name as such
I have the same issue as well. I need to create a new MMS for use for a different app. Currently AutoSPInstaller will not allow more than 1 MMS created as the function CreateMetadataServiceApp check on the SPServiceInstance type rather than the display name as such
$metadataServiceInstances = Get-SPServiceInstance | ? {$_.GetType().ToString() -eq "Microsoft.SharePoint.Taxonomy.MetadataWebServiceInstance"}Changing it to the following will solve your pain.
$metaDataServiceAppProxy = Get-SPServiceApplicationProxy | ? {$_.GetType().ToString() -eq "Microsoft.SharePoint.Taxonomy.MetadataWebServiceApplicationProxy"}
$metadataServiceInstances = Get-SPServiceInstance | ? {$_.DisplayName -eq $metadataServiceName}
$metaDataServiceAppProxy = Get-SPServiceApplicationProxy | ? {$_.DisplayName -eq $metadataServiceProxyName }