Advice Request Powershell constrained language on Windows 7?

Share practical recommendations that address the author's needs.

shmu26

Level 87
Verified
Honorary Member
Top Poster
Content Creator
Well-known
Forum Veteran
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?
 

Join the discussion

Write your reply below. You'll create a free account or log in before it's posted.

Recently browsing

Members who viewed this thread in the last 5 minutes

Back
Top