r/PowerShell • u/Practice_Complex_ • Nov 24 '25
Question Win11 powershell for hardening new laptop
any of you happen to have a powershell script for Win11 and/or a script-based config I can run for starting up a new laptop for a hardened Win11 install in a repeatable way? I have been looking around online - found this one and was hopeful there was some industry standard for these?
thanks in advance, Im new here and still learning powershell stuff
28
Upvotes
15
u/GherkinP Nov 24 '25
Depends on the end goal of why you want to harden the system?
If this is for business compliance, then you could aim for Essential Eight (AU), Cyber Essentials (UK), or the EUCC in Europe.
Otherwise HardeningKitty is a good option, or (considerably stronger and more invasive) you can apply a DoD STIG to the workstation: https://medium.com/@stevenrim/powershell-automation-for-disa-stig-compliance-and-hardening-6515d055d9ef
7
u/Harvesterify Nov 24 '25
You can have a look at this project for hardening your system: https://github.com/HotCakeX/Harden-Windows-Security and its sister project for Application Control: https://github.com/HotCakeX/Harden-Windows-Security/wiki/AppControl-Manager
2
u/[deleted] Nov 24 '25
Most professionals will use group policies or MDM for that kind of thing, so there wouldn’t be much of an industry standard for this kind of PowerShell configuration. It’d be more of a bespoke thing with people making custom scripts for what they want.
2
u/hihcadore Nov 25 '25
CIS has hardened ISOs you can use.
1
u/Im_writing_here Nov 28 '25
Use hardeningkitty.
You can make a config for use with hardeningkitty on this site https://phi.cryptonit.fr/policies_hardening_interface/interface/windows/