Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: clear policy #11

Open
LasseKrache opened this issue Jan 19, 2023 · 2 comments
Open

Suggestion: clear policy #11

LasseKrache opened this issue Jan 19, 2023 · 2 comments

Comments

@LasseKrache
Copy link

Hello again

Since I stumbled upon the need to make changes to the audit policy today, I would like to suggest the following:

To easily and quickly import configuration changes, one should insert the command "auditpol /clear /y" before the actual definitions are made. This will reset all previous policies and then you can initiate again.

Extract from the code

:: ...
:: Configure Security log 
:: Note: subcategory IDs are used instead of the names in order to work in any OS language.
:: Clear
:: Before configuring (new) audit policies we reset them to default values
auditpol /clear /y 
:: Account Logon
:: ...

At least, it does no harm. ;-)

Best regards,
Lasse

@LasseKrache LasseKrache changed the title Suggestion: Suggestion: clear policy Jan 19, 2023
@YamatoSecurity
Copy link
Contributor

Hi @LasseKrache
Thanks again for the suggestion! Let me think about this a little bit.
I want to improve the log settings but keep any settings I don't cover to whatever they were set to before.
(I don't want people to get made that their settings were reset to something worse.)
I might add this in as a comment for people to comment out if they want to reset settings and make sure that all systems have the same settings.

@LasseKrache
Copy link
Author

Hello,

Of course, this is just a suggestion and it's up to you, to insert it or not.
From my understanding it does no harm and only ensures that the settings made in the script afterwards are really the only ones that will be implemented in the end. If I would like to use additional settings on my systems, I would build them in your script, too, and not use different methods. But this is only my understanding of such scripts/tools.

Have a nice day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants