HotCakeX / Harden-Windows-Security

Harden Windows Safely, Securely using Official Supported Microsoft methods and proper explanation | Always up-to-date and works with the latest build of Windows | Provides tools and Guides for Personal, Enterprise, Government and Military security levels | Read The Rationale https://github.com/HotCakeX/Harden-Windows-Security/blob/main/Rationale.md
https://hotcakex.github.io
MIT License
1.72k stars 134 forks source link

Easier and automatic way to start the script #263

Closed HotCakeX closed 4 months ago

HotCakeX commented 4 months ago

You no longer need to install PowerShell core manually. The new mechanism automatically detects whether PowerShell core is installed on the system, if it isn't, it attempts to install it using Winget from Microsoft Store source. If Winget itself is not installed, it will first Install Winget and its dependencies, then it will install PowerShell core and finally runs the Hardening script.

This change reduces the efforts that need to be taken by the user to launch the hardening script.

I've seen multiple issues being created on the repo about users trying to start the hardening script using Windows PowerShell instead of PowerShell (core), this will take care of those situations as well.

No administrator privilege is required for this entire process.