Quantcast
Viewing all articles
Browse latest Browse all 36

ADFS configuration for SharePoint 2016 new web application

I have successfully configured for one web application. While adding the second web application using PowerShell script I have given wrong urn and now when I try to update the urn in SharePoint it throws the error

Exception calling "Add" with "2" argument(s): "An item with the same key has already been added.

The script which I used to update the second web application is below:

Add-PSSnapin "Microsoft.SharePoint.PowerShell" $sts = Get-SPTrustedIdentityTokenIssuer | where {$_.Name -eq "ADFS"} $uri = new-object System.Uri("https://contoso.com/") $sts.ProviderRealms.Add($uri, "urn:sharepoint:MyNewWebApplicationURL") $sts.Update();

Viewing all articles
Browse latest Browse all 36

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>