Se (! stringa]:: IsNullOrEmpty($RoleDatacenterPushNotificationEnvironment)) { $pushNotificationAuthKeysPath = 'HKLM:\SOF ...

Se (! [stringa]:: IsNullOrEmpty($RoleDatacenterPushNotificationEnvironment))          {            $pushNotificationAuthKeysPath = 'HKLM:\SOFTWARE\Microsoft\ExchangeLabs\PushNotificationAuthKeys';            $authKeys = @ {};            $pushNotificationAuthKeysItem = get-elemento $pushNotificationAuthKeysPath - ErrorAction: SilentlyContinue;Se ($pushNotificationAuthKeysItem - ne $null)            {              $pushNotificationAuthKeysItem | Proprietà di Select-Object - ExpandProperty | ForEach-Object '              {                $keyValue = (ItemProperty get-percorso $pushNotificationAuthKeysPath-nome $_). $_;                Se (! [stringa]:: IsNullOrEmpty($keyValue))                {                    $authKeys [$_] = ConvertTo-SecureString $keyValue - AsPlainText-forza;                }              }            }Installazione CannedPushNotificationApp '                -AuthenticationKeys '$authKeys                -Ambiente: $RoleDatacenterPushNotificationEnvironment '                -IsDedicated: $RoleIsDatacenterDedicated '                -AcsUser: $RoleDatacenterPushNotificationAcsUser '                -Area: $RoleDatacenterRegion;          }