Harden-Windows-Security
2023.3.11
💠 Features of this Hardening script:
✅ Always up-to-date and only guaranteed to work on the latest version of Windows (Which is currently Windows 11 - Rigorously tested on the latest Stable and Insider Dev builds).
✅ Doesn't remove or disable
💠 Features of this Hardening script:
✅ Always up-to-date and only guaranteed to work on the latest version of Windows (Which is currently Windows 11 - Rigorously tested on the latest Stable and Insider Dev builds).
✅ Doesn't remove or disable Windows functionalities against Microsoft's recommendation.
✅ The Readme page on GitHub is used as the reference for all of the security measures applied by this script and Group Policies. The order in which they appear there is the same as the one in the script file.
✅ When a hardening command is no longer necessary because it's applied by default by Microsoft on new builds of Windows, it will also be removed from this script in order to prevent any problems and because it won't be necessary anymore.
✅ The script can be run infinite number of times, it's made in a way that it won't make any duplicate changes at all.
✅ The script asks for confirmation, in the PowerShell console, before running each hardening category, so you can selectively run (or don't run) each of them.
✅ Running this script makes your PC compliant with Secured-core PC specifications (providing that you use a modern hardware that supports the latest Windows security features).
✅ Running this script makes your system compliant with the official Microsoft Security Baselines
🛑 Warning: Windows by default is secure and safe, this script does not imply nor claim otherwise. just like anything, you have to use it wisely and don't compromise yourself with reckless behavior and bad user configuration; Nothing is foolproof. this script only uses the tools and features that have already been implemented by Microsoft in Windows OS to fine-tune it towards the highest security and locked-down state, using well-documented, supported, recommended and official methods. continue reading on GitHub for comprehensive info.
💠 Hardening Categories from top to bottom: (🔺Detailed info about each of them at my Github🔻)
⏹ Commands that require Administrator Privileges
✅ Microsoft Security Baselines
✅ Microsoft Defender
✅ Attack surface reduction rules
✅ Bitlocker Settings
✅ TLS Security
✅ Lock Screen
✅ UAC (User Account Control)
✅ Device Guard
✅ Windows Firewall
✅ Optional Windows Features
✅ Windows Networking
✅ Miscellaneous Configurations
✅ Windows Update Configurations
✅ Edge Browser Configurations
✅ Certificate Checking Commands
✅ Country IP Blocking
⏹ Commands that don't require Administrator Privileges
✅ Non-Admin Commands that only affect the current user and do not make machine-wide changes.
💎 Note: If there are multiple Windows user accounts in your computer, it's recommended to run this script in each of them, without administrator privileges, because Non-admin commands only apply to the current user and are not machine wide.
💎 Note: The script asks for confirmation, in the PowerShell console, before running each hardening category, so you can selectively run (or don't run) each of them.
💎 Note: There are 4 items tagged with #TopSecurity that can cause difficulties. When you run this script, you will have an option to enable them if you want to. You can find all the information about them on GitHub.
🏴 If you have any questions, requests, suggestions etc. about this script, please open a new discussion in GitHub:
🟡 https://github.com/HotCakeX/Harden-Windows-Security/discussions
Installation Options
Author(s)
HotCakeX
Copyright
2023
Package Details
Owners
Tags
Windows Hardening Security Bitlocker Defender Firewall Edge Protection
Functions
Select-Option ModifyRegistry Test-IsAdmin Invoke-WithoutProgress Compare-SecureString BlockCountryIP
Dependencies
This script has no dependencies.
Release Notes
Version 2023.3.11: Updated the task scheduler for Microsoft recommended block rules auto update to cover situations when there is no Internet.
##
Version 2023.3.5: The script can create task schedule for fast Microsoft recommended driver block list. You can set Microsoft Defender engine update channels to beta. The script can uninstall Legacy Notepad, VBScript, WMIC and Internet explorer mode for Edge from optional Windows Features. Added one more TopSecurity measure for preventing fast user switching. optimized the script.
##
Version 2023.3.3.1: Fixed some category names and PowerShell gallery description
FileList
- Harden-Windows-Security.nuspec
- Harden-Windows-Security.ps1