{"id":9243634,"url":"https://github.com/simeononsecurity/Windows-Terminal-Hardening","last_synced_at":"2025-08-17T07:31:58.422Z","repository":{"id":110919480,"uuid":"314004359","full_name":"simeononsecurity/Windows-Terminal-Hardening","owner":"simeononsecurity","description":"Scripts and Documentation for Hardening Windows Command Prompt and PowerShell","archived":false,"fork":false,"pushed_at":"2024-07-26T23:05:58.000Z","size":24,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T06:36:23.206Z","etag":null,"topics":["automation","cmd","hardening","lockdown","mitigation","powershell","powershell-script"],"latest_commit_sha":null,"homepage":"https://simeononsecurity.com/github/Windows-Terminal-Hardening","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simeononsecurity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["simeononsecurity"],"custom":["https://simeononsecurity.com","https://simeononsecurity.com/recommendhome","https://simeononsecurity.com/affiliate","https://twitter.com/simeonsecurity","https://discord.io/cybersentinels"]}},"created_at":"2020-11-18T17:13:49.000Z","updated_at":"2025-03-10T21:15:52.000Z","dependencies_parsed_at":"2025-04-17T08:55:59.819Z","dependency_job_id":"04c65092-ea1d-4bca-9214-a12673c16fe7","html_url":"https://github.com/simeononsecurity/Windows-Terminal-Hardening","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simeononsecurity/Windows-Terminal-Hardening","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeononsecurity%2FWindows-Terminal-Hardening","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeononsecurity%2FWindows-Terminal-Hardening/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeononsecurity%2FWindows-Terminal-Hardening/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeononsecurity%2FWindows-Terminal-Hardening/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simeononsecurity","download_url":"https://codeload.github.com/simeononsecurity/Windows-Terminal-Hardening/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeononsecurity%2FWindows-Terminal-Hardening/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270820680,"owners_count":24651515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","cmd","hardening","lockdown","mitigation","powershell","powershell-script"],"created_at":"2024-05-08T00:10:29.194Z","updated_at":"2025-08-17T07:31:58.132Z","avatar_url":"https://github.com/simeononsecurity.png","language":"PowerShell","funding_links":["https://github.com/sponsors/simeononsecurity","https://simeononsecurity.com","https://simeononsecurity.com/recommendhome","https://simeononsecurity.com/affiliate","https://twitter.com/simeonsecurity","https://discord.io/cybersentinels"],"categories":["Windows Hardening"],"sub_categories":[],"readme":"# Windows-Terminal-Hardening\n\n [![Sponsor](https://img.shields.io/badge/Sponsor-Click%20Here-ff69b4)](https://github.com/sponsors/simeononsecurity) [![VirusTotal Scan](https://github.com/simeononsecurity/Windows-Terminal-Hardening/actions/workflows/virustotal.yml/badge.svg)](https://github.com/simeononsecurity/Windows-Terminal-Hardening/actions/workflows/virustotal.yml)\n\nWindows-Terminal-Hardening is a PowerShell script that elevates privileges and performs various Windows hardening tasks to enhance security. The script requires administrative rights to run and performs the following actions: disabling CMD and PowerShell v2, setting PowerShell Constrained Language Mode, enabling PowerShell logging, removing WSMan listeners, disabling the WSMan Service, and disabling the firewall rule for Windows Remote Management. The script outputs a message confirming the elevation of privileges.\n\n## What does this script do?\n- Disables Command Prompt\n- Disables PowerShell v2\n- Disables WSMAN and PSRemoting\n- Enables PowerShell Constrained Language Mode\n- Enables PowerShell Logging\n\n## Recommended Reading:\n- [PowerShell Best Practices](https://www.digitalshadows.com/blog-and-research/powershell-security-best-practices/)\n- [PowerShell Constrained Language Mode](https://devblogs.microsoft.com/powershell/powershell-constrained-language-mode/)\n- [Securing PowerShell in the Enterprise](https://www.cyber.gov.au/acsc/view-all-content/publications/securing-powershell-enterprise)\n- [Windows Defender Hardening](https://github.com/simeononsecurity/Windows-Defender-Hardening)\n\n## Download the required files:\n\nDownload the required files from the [GitHub Repository](https://github.com/simeononsecurity/Windows-Terminal-Hardening)\n\n## How to run the script:\n\n**The script may be lauched from the extracted GitHub download like this:**\n```\n.\\sos-windowsterminalhardening.ps1\n```\n\u003ca href=\"https://simeononsecurity.ch\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n  \u003ch2\u003eExplore the World of Cybersecurity\u003c/h2\u003e\n\u003c/a\u003e\n\u003ca href=\"https://simeononsecurity.ch\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n  \u003cimg src=\"https://simeononsecurity.ch/img/banner.png\" alt=\"SimeonOnSecurity Logo\" width=\"300\" height=\"300\"\u003e\n\u003c/a\u003e\n\n### Links:\n- #### [github.com/simeononsecurity](https://github.com/simeononsecurity)\n- #### [simeononsecurity.ch](https://simeononsecurity.ch)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimeononsecurity%2FWindows-Terminal-Hardening","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimeononsecurity%2FWindows-Terminal-Hardening","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimeononsecurity%2FWindows-Terminal-Hardening/lists"}