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
When you run this on an Azure VM (with the Microsoft Security Baselines option enabled) you get logged off and kicked out of the machine and can't get in anymore. Probably because the policies disable RDP. Please make something to detect that it's an Azure VM and don't apply those settings. I can help with that. Until that's done you should state that this shou;dm\t be run on azure vm because it breaks the connection to the VM.
Tools category
Harden Windows Security Script
Does your system meet the requirements?
Please explain the bug
When you run this on an Azure VM (with the Microsoft Security Baselines option enabled) you get logged off and kicked out of the machine and can't get in anymore. Probably because the policies disable RDP. Please make something to detect that it's an Azure VM and don't apply those settings. I can help with that. Until that's done you should state that this shou;dm\t be run on azure vm because it breaks the connection to the VM.