Davidyese Posted March 2 Posted March 2 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
argumentum Posted March 2 Posted March 2 10 hours ago, Davidyese said: ..by the way there is Autoit tool do this.. ..go at it. Code it Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
Davidyese Posted March 2 Author Posted March 2 1 hour ago, argumentum said: ..go at it. Code it 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 Subz Posted March 2 Solution Posted March 2 (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 March 3 by Subz Davidyese 1
Davidyese Posted March 11 Author Posted March 11 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now