Table of Contents

Scripts and Documentation for Hardening Windows Command Prompt and PowerShell

What does this script do?

  • Disables Command Prompt
  • Disables PowerShell v2
  • Disables WSMAN and PSRemoting
  • Enables PowerShell Constrained Language Mode
  • Enables PowerShell Logging

Download the required files:

Download the required files from the GitHub Repository

How to run the script:

The script may be lauched from the extracted GitHub download like this:

.\sos-windowsterminalhardening.ps1