Set ConstrainedLanguage Mode in PowerShell

Enable ConstrainedLanguage mode.

John Savill

July 9, 2014

1 Min Read
PowerShell command prompt

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'

About the Author(s)

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like