場合 $RoleDatacenterIsManagementForest eq 'True'){書き込み-ExchangeSetupLog-FullLanguageMode を有効にするのには /PowerShell 仮想ディレクトリの web ...

場合 ($RoleDatacenterIsManagementForest eq 'True'){書き込み-ExchangeSetupLog-FullLanguageMode を有効にするのには、/PowerShell 仮想ディレクトリの web 構成の「設定」の情報です。$powerShellVdirPath = [System.IO.Path]::Combine ((取得 ItemProperty-パス ' HKLM:SOFTWARE\Microsoft\ExchangeServer\v15\Setup')。MsiInstallPath、"ClientAccess\PowerShell")。場合 (Test-Path("$powerShellVdirPath\web.config")){$webConfig = [xml] の [文字列]: 結合 (「なった」、(取得コンテンツ「$powerShellVdirPath\web.config」))。($webconfig.configuration.appSettings.add | 場所 {0} $_.key - eq"PSLanguageMode"}) 重視 ="FullLanguage"です。$webconfig。Save("$powershellvdirpath\web.config")。}その他{書き込み ExchangeSetupLog-警告「が見つかりませんでした web.config で $powerShellVdirPath」。}}