IFD-instellingen configureren
Gepubliceerd: januari 2017
Is van toepassing op: Dynamics 365 (on-premises), Dynamics CRM 2016
Met de Powershell Get-CrmSetting- en Set-CrmSetting-cmdlets kunt u de instellingen in uw Microsoft Dynamics 365-installatie bijwerken. Een van de typen instellingen die u kunt wijzigen is voor een IFD (Internet Facing Deployment).
Vereisten
Raadpleeg voor het instellen vanMicrosoft Dynamics 365 Powershell-cmdlets: De installatie beheren met Windows PowerShell.
Demonstreert
U kunt het volgende script gebruiken om instellingen voor een IFD (Internet Facing Deployment) bij te werken. U moet de volgende parameters opgeven:
DiscoveryWebServiceRootDomain: het domein voor de discovery-webservice.
Enabled: een Boolean dat aangeeft of het Internet Facing Deployment (IFD) is ingeschakeld.
ExternalDomain: de externe domeinwaarde voor IFD.
OrganizationWebServiceRootDomain: het domein voor de organisatiewebservice.
WebApplicationRootDomain: het serverdomein voor de webtoepassing.
Voorbeeld
param
(
#optional params
[string]$DiscoveryWebServiceRootDomain,
[boolean]$Enabled,
[string]$ExternalDomain,
[string]$OrganizationWebServiceRootDomain,
[string]$WebApplicationRootDomain
)
$RemoveSnapInWhenDone = $False
if (-not (Get-PSSnapin -Name Microsoft.Crm.PowerShell -ErrorAction SilentlyContinue))
{
Add-PSSnapin Microsoft.Crm.PowerShell
$RemoveSnapInWhenDone = $True
}
$IfdSettings = Get-CrmSetting -SettingType IfdSettings
if($DiscoveryWebServiceRootDomain) {$IfdSettings.DiscoveryWebServiceRootDomain = $DiscoveryWebServiceRootDomain}
if($ExternalDomain) {$IfdSettings.ExternalDomain = $ExternalDomain}
if($PSBoundParameters.ContainsKey('Enabled')) {$IfdSettings.Enabled = $Enabled}
if($OrganizationWebServiceRootDomain) {$IfdSettings.OrganizationWebServiceRootDomain = $OrganizationWebServiceRootDomain}
if($WebApplicationRootDomain) {$IfdSettings.WebApplicationRootDomain = $WebApplicationRootDomain}
Set-CrmSetting -Setting $IfdSettings
$IfdSettings
if($RemoveSnapInWhenDone)
{
Remove-PSSnapin Microsoft.Crm.PowerShell
}
Zie ook
De installatie beheren met Windows PowerShell
Instellingen voor implementatieconfiguratie bijwerken
© 2017 Microsoft. Alle rechten voorbehouden. Auteursrecht