Windows Command Prompt and PowerShell Hardening
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
Recommended Reading:
- PowerShell Best Practices
- PowerShell Constrained Language Mode
- Securing PowerShell in the Enterprise
- Windows Defender Hardening
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