Jump to content

Recommended Posts

Posted

Hello everyone,

I'm searchong for a real smart code in any form to change directly local group policy of one item to be : enabled

here is the path for that item

Computer Configuration>Administrative Templates>Windows Defender>Turn off Windows Defender>Enabled

if any code in cmd or autoit or vbs but working on windows 7 (powershel codes not working properly in windows 7 concerning Windows Defender)

any help and this will be great

by the way there is Autoit tool do this efficiently (dcontrol v2.1) so Autoit code could be to manage and edit group policy items

Thanks in advance

Posted
1 hour ago, argumentum said:

..go at it. Code it :cheer:

The mening : Autoit can perform this kind of my request

Coding of this tool is not my request at all, if anyone can help this will be good

If this not applicable and difficult it's okay

  • Solution
Posted (edited)

It's just a registry key that needs to be added, here is the process I normally use to identify the registry keys for group policy:

Google: admx "Turn off Windows Defender"

This should return: Turn off Microsoft Defender Antivirus from https://admx.help 

You can then just use set the registry key, since it's HKLM it would require #RequireAdmin or have it run using system account.

Edited by Subz
  • 2 weeks later...
Posted
On 3/3/2025 at 1:08 AM, Subz said:

It's just a registry key that needs to be added, here is the process I normally use to identify the registry keys for group policy:

Google: admx "Turn off Windows Defender"

This should return: Turn off Microsoft Defender Antivirus from https://admx.help 

You can then just use set the registry key, since it's HKLM it would require #RequireAdmin or have it run using system account.

Thank you my dear Subz,

It's helpful and i adjusted an Autoit code to properly control this policy concerning On/Off windows defender

Accept my respect and best wishes to you

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...