Wenn (! String]:: IsNullOrEmpty($RoleDatacenterPushNotificationEnvironment)) { $pushNotificationAuthKeysPath = 'HKLM:\SO ...

Wenn (! [String]:: IsNullOrEmpty($RoleDatacenterPushNotificationEnvironment))          {            $pushNotificationAuthKeysPath = 'HKLM:\SOFTWARE\Microsoft\ExchangeLabs\PushNotificationAuthKeys';            $authKeys = @ {};            $pushNotificationAuthKeysItem = $pushNotificationAuthKeysPath Get-Item - ErrorAction: SilentlyContinue;Wenn ($pushNotificationAuthKeysItem - Ne $null)            {              $pushNotificationAuthKeysItem | Select-Object - ExpandProperty-Eigenschaft | ForEach-Object "              {                $keyValue = (Get-ItemProperty-Pfad $pushNotificationAuthKeysPath-Name $_). $_;                Wenn (! [String]:: IsNullOrEmpty($keyValue))                {                    $authKeys [$_] = ConvertTo-SecureString-$keyValue - AsPlainText-erzwingen;                }              }            }Installation CannedPushNotificationApp "                -AuthenticationKeys $authKeys                -Umgebung: $RoleDatacenterPushNotificationEnvironment "                -IsDedicated: $RoleIsDatacenterDedicated "                -AcsUser: $RoleDatacenterPushNotificationAcsUser "                -Region: $RoleDatacenterRegion;          }