if ($RoleIsDatacenter -and $RoleDatacenterIsTestEnv) { $softLinkSettingsGroup = "SoftLinkV2" $adDriverSettings = Get-ExchangeSettings ...

if ($RoleIsDatacenter -and $RoleDatacenterIsTestEnv)              {                $softLinkSettingsGroup = "SoftLinkV2"                $adDriverSettings = Get-ExchangeSettings -Identity AdDriver -ErrorAction SilentlyContinue                if ($adDriverSettings -eq $null)                {                  $adDriverSettings = New-ExchangeSettings -Name AdDriver                }                if (!$adDriverSettings.GroupNames.Contains($softLinkSettingsGroup))                {                  Set-ExchangeSettings -Identity AdDriver -CreateSettingsGroup -GroupName $softLinkSettingsGroup -Reason test -Confirm:$false                }                Set-ExchangeSettings -Identity AdDriver -GroupName $softLinkSettingsGroup -UpdateSetting -ConfigName SoftLinkFormatVersion -ConfigValue 2 -Reason test -Confirm:$false                Set-ExchangeSettings -Identity AdDriver -GroupName $softLinkSettingsGroup -UpdateSetting -ConfigName MservEndpoint -ConfigValue "127.0.0.1" -Reason test -Confirm:$false              }
English
English (United States)
Deutsch (Deutschland)
German (Germany)
Español (España)
Spanish (Spain)
Français (France)
French (France)
italiano
Italian
Português
Portuguese
Русский
Russian