Если (! строка]:: IsNullOrEmpty($RoleDatacenterPushNotificationEnvironment)) { $pushNotificationAuthKeysPath = "HKLM:\SO ...

Если (! [строка]:: IsNullOrEmpty($RoleDatacenterPushNotificationEnvironment))          {            $pushNotificationAuthKeysPath = "HKLM:\SOFTWARE\Microsoft\ExchangeLabs\PushNotificationAuthKeys";            $authKeys = @ {};            $pushNotificationAuthKeysItem = get-элемент $pushNotificationAuthKeysPath - ErrorAction: SilentlyContinue;Если ($pushNotificationAuthKeysItem - ne $null)            {              $pushNotificationAuthKeysItem | Свойство Select-Object - ExpandProperty | ForEach-Object "              {                $keyValue = (get-ItemProperty-путь $pushNotificationAuthKeysPath-имя $_). $_;                Если (! [строка]:: IsNullOrEmpty($keyValue))                {                    $authKeys [$_] = ConvertTo-SecureString $keyValue - AsPlainText-принудительно;                }              }            }Установка CannedPushNotificationApp "                AuthenticationKeys - $authKeys                -Среды: $RoleDatacenterPushNotificationEnvironment "                -IsDedicated: $RoleIsDatacenterDedicated "                -AcsUser: $RoleDatacenterPushNotificationAcsUser "                -Регион: $RoleDatacenterRegion;          }