Saturday, August 25, 2018

ADDING/REMOVING SERVICES TO DEFAULT APPLICATION PROXY GROUP IN SHAREPOINT USING POWER SHELL


By default, all Web applications are associated with the farm’s Default group of service application connections, although you can change this setting. You can also create one custom connection group for each Web application in the farm. You can change the service applications with which a Web application is associated at any time, and you can change the service applications that are included in the Default service application connection group.

$serviceAppProxy = Get-SPServiceApplicationProxy | where { $_.Name -eq “Name of the service” }
$proxygroup = Get-SPServiceApplicationProxyGroup | where { $_.FriendlyName -eq “[default]” }

Add-SPServiceApplicationProxyGroupMember -Identity $proxygroup -Member $serviceAppProxy

OR

Remove-SPServiceApplicationProxyGroupMember -Identity $proxygroup -Member $serviceAppProxy

No comments: