PowerShell command prompt

Set ConstrainedLanguage Mode in PowerShell

Q: How can I force my PowerShell session to use ConstrainedLanguage mode?

A: To force your session to use constrained language such as that available in a Windows RT environment, use the following code:

$Host.Runspace.LanguageMode = 'ConstrainedLanguage'
Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.