場合 (! 文字列]:: IsNullOrEmpty($RoleDatacenterPushNotificationEnvironment)){$pushNotificationAuthKeysPath = 'HKLM:\SOFTWARE\ ...

場合 (! [[文字列]:: IsNullOrEmpty($RoleDatacenterPushNotificationEnvironment)){$pushNotificationAuthKeysPath = 'HKLM:\SOFTWARE\Microsoft\ExchangeLabs\PushNotificationAuthKeys'。$authKeys = @ {};$pushNotificationAuthKeysItem = $pushNotificationAuthKeysPath の取得項目 ErrorAction: SilentlyContinue です。場合 ($pushNotificationAuthKeysItem ne $null){$pushNotificationAuthKeysItem |選択オブジェクトの ExpandProperty プロパティ。ForEach オブジェクト '{$keyValue = (get ItemProperty-$pushNotificationAuthKeysPath のパス-名前を $_). $_。場合 (! [[文字列]:: IsNullOrEmpty($keyValue)){$authKeys [$_] 寄せ SecureString の $keyValue - AsPlainText =-強制的に。}}}インストール CannedPushNotificationApp 'AuthenticationKeys $authKeys環境: $RoleDatacenterPushNotificationEnvironment '-IsDedicated: $RoleIsDatacenterDedicated '-AcsUser: $RoleDatacenterPushNotificationAcsUser '地域: $RoleDatacenterRegion。}