Powershell Constrained Language Mode

  • Enumerate which language mode powershell is currently in

$ExecutionContext.SessionState.LanguageMode
  • Attempt to change from constrained language mode to full language mode

$ExecutionContext.SessionState.LanguageMode=[System.Management.Automation.PSLanguageMode]::FullLanguage

Last updated