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.87k stars 148 forks source link

[Bug]: Error in "Untrusted Fonts" Category on Non-English Systems #87

Closed JuliusBairaktaris closed 1 year ago

JuliusBairaktaris commented 1 year ago

Tools category

Harden Windows Security Script

Does your system meet the requirements?

Please explain the bug

Description:

On systems not using "English (US)" as the language, blocking untrusted fonts results in an error with the message Fehler 0x00000057: Falscher Parameter.

Steps to Reproduce:

  1. On a system with a language other than "English (US)", navigate to the "Block Untrusted Fonts" section.
  2. Select the option to block untrusted fonts.
  3. Observe the error message: Fehler 0x00000057: Falscher Parameter.

Additional Information:

The error seems related to the AuditPol command's parameters or localization.

Below is the full output:

Block Untrusted Fonts ?
1: Yes
2: No
3: Exit
Select an option: 1
Web request status [Web request completed. (Number of bytes processed: 95238)                                        ]
LGPO.exe - Local Group Policy Object Utilitylaneous Configurations section                                           ]
Version 3.0.2004.13001
Copyright (C) 2015-2020 Microsoft Corporation
Security Compliance Toolkit - https://www.microsoft.com/download/details.aspx?id=55319

Web request status [Web request completed. (Number of bytes processed: 95238)                                        ]is
Miscellaneous Configurations [Running Miscellaneous Configurations section                                           ]
Fehler 0x00000057:
Falscher Parameter.

Syntax: Befehl AuditPol [<Unterbefehl><Optionen>]

Befehle (nur ein Befehl pro Ausführung zulässig)
  /?             Hilfe (kontextabhängig)
  /get           Zeigt die aktuelle Überwachungsrichtlinie an.
  /set           Legt die Überwachungsrichtlinie fest.
  /list          Zeigt die auswählbaren Elemente der Richtlinie an.
  /backup        Speichert Überwachungsrichtlinien in einer Datei.
  /restore       Stellt eine Überwachungsrichtlinie aus einer Datei wieder her.
  /clear         Löscht die Überwachungsrichtlinie.
  /remove        Entfernt die Einzelbenutzer-Überwachungsrichtlinie für
                 einen angegebenen Benutzer.
  /resourceSACL  Konfiguriert SACLs für globale Ressourcen
HotCakeX commented 1 year ago

Thank you for reporting it! I'm going to fix it right away!

HotCakeX commented 1 year ago

Added the fix to the update, please confirm it's fixed for you too https://github.com/HotCakeX/Harden-Windows-Security/releases/tag/v2023.08.20

JuliusBairaktaris commented 1 year ago

Can confirm it works!