Advice Request Powershell constrained language on Windows 7?

Please provide comments and solutions that are helpful to the author of this topic.

shmu26

Level 85
Thread author
Verified
Honorary Member
Top Poster
Content Creator
Well-known
Forum Veteran
Jul 3, 2015
8,148
1
31,237
8,388
Middle Earth
On Windows 7 Ultimate x64, I ran the following from elevated Powershell prompt:
Code:
[Environment]::SetEnvironmentVariable('__PSLockdownPolicy', '4', 'Machine')
Then I closed the prompt, and reopened it, and ran
Code:
$ExecutionContext.SessionState.LanguageMode

But it said "FullLanguage".

Then I went into Control Panel, and in advanced security settings, I looked at the environment variables, and one of them is: "PSLockdownPolicy 4".

So... is it enabled, or is it not?