Sunday, November 6, 2022

Change PowerShell mode to FullLanguage mode from ConstrainedLanguage

You may face this issue if you are running under an enterprise laptop and your administrator put you into constrained mode.

If you want to run software like docker, then you need to use FullLanguage mode.

Use the below command to check your language mode.

$ExecutionContext.SessionState.LanguageMode

There are two ways to set it to FullLanguage mode.

1. Using the below command

$ExecutionContext.SessionState.LanguageMode = 'fulllanguage'

2. Edit your registry __PSLockdownPolicy value to 8.

HKLM\System\CurrentControlSet\Control\SESSION MANAGER\Environment\__PSLockdownPolicy

No comments:

Post a Comment