Hi,
I want to obtain the CRM 2016 Realm ID.
We established Server Intergration with SP2016, but we lost the PS script containing the CRM realm ID.
Also, the Wizard option in CRM is no longer there, since we used it during the setup.
We need it for the following script, as found on Technet (https://technet.microsoft.com/en-us/library/dn949332.aspx):
Add-PSSnapin Microsoft.SharePoint.PowerShell
$CrmRealmId = "THE-CRM-REALM-ID"
$Identifier = "00000007-0000-0000-c000-000000000000@" + $CrmRealmId
$site = Get-SPSite "EXAMPLE SITE"
Register-SPAppPrincipal -site $site.RootWeb -NameIdentifier $Identifier -DisplayName "Sample"
$app = Get-SPAppPrincipal -NameIdentifier $Identifier -Site $site.Rootweb
Set-SPAppPrincipalPermission -AppPrincipal $app -Site $site.Rootweb -Scope "sitecollection" -Right "FullControl" -EnableAppOnlyPolicy
#"Set up claims-based authentication mapping"
New-SPClaimTypeMapping -IncomingClaimType "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" -IncomingClaimTypeDisplayName"EmailAddress" -SameAsIncoming