title: Can we change PowerShell sessions's LanguageMode?
body: <p>My current environment is Windows 7 Enterprise Edition(SP1) with PowerShell V5</p>
  
  <p>PSVersion = 5.0.10586.117</p>
  
  <p>For somehow when I try to run the following statement (it worked well before)</p>
  
  <pre><code>new-object System.Net.WebClient
  </code></pre>
  
  <p>I started to get the following error</p>
  
  <p><a href="https://i.stack.imgur.com/CxpGw.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/CxpGw.jpg" alt="Cannot create type. Only core types are supported in this language mode"></a></p>
  
  <p>I checked </p>
  
  <pre><code>$ExecutionContext.SessionState.LanguageMode
  </code></pre>
  
  <p>and the result is: <strong>ConstrainedLanguage</strong> </p>
  
  <p>I am now at a loss on how to change this LanguageMode to "FullLanguage" as mentioned in this <a href="https://technet.microsoft.com/en-us/library/dn433292.aspx" rel="noreferrer">URL</a></p>
  
  <p>I googled around and do not see anything related to my environment, the closest link I see is <a href="https://social.technet.microsoft.com/Forums/sharepoint/en-US/44445864-ee91-4073-9f21-50ab36ec781b/powershell-5-limited-to-constrainedlanguage-language-mode?forum=winserverpowershell" rel="noreferrer">here</a> in MS technet forum. But in my case, I do not think it is AppLocker enabled (or do I have to ask my network admin to check the group policy?) and I do not see any SRP (Software Restriction Policy) on my local computer either.</p>
  
  <p>Could someone please tell me how to fix this issue or how to check various aspects that lead to this LanguageMode change? or is there a way that I can edit the LangugageMode value? 
  Thanks in advance for your help.</p>