Applications Systems

Unable to setup PSLanguageMode setting for the PowerShell website

Unable to setup PSLanguageMode setting for the PowerShell website.

First published date

10/10/2018 1:51 PM

Last published date

7/15/2021 5:13 AM

Overview

Unable to setup PSLanguageMode setting for the PowerShell website.

Note: To support AppInsight for Exchange, earlier versions of SAM used FullLanguage mode on target servers. Starting in SAM 2020.2.6, use RestrictedLanguage as the minimum PSLanguageMode setting in PowerShell on target servers. For a script to adjust that setting on existing servers, see Update PSLanguageMode PowerShell settings for target AppInsight for Exchange nodes in SAM.

Product section

Server Application Monitor

Resolution

  1. Open IIS Manager on the Exchange server.
  2. Expand the tree to the Default Web Site/PowerShell virtual directory.
  3. Double-click Application Settings.
  4. Change the value for PSLanguageMode to FullLanguage.
  5. Recycle the MSExchangePowerShellAppPool application pool.

For Exchange 2013, also check the following:

  1. Expand the tree to the Exchange Back End/PowerShell virtual directory.
  2. Double-click Application Settings.
  3. Change the value for PSLanguageMode to FullLanguage.
  4. Recycle MSExchangePowerShellFrontEndAppPool application pool.