Solved

how to disable windows defender via logon script

Posted on 2014-03-10
19
1,953 Views
Last Modified: 2014-03-16
Since we are running 2003 Forest/Domain there are no GPO options to disable Windows Defender (that I am aware of).

Is there a method via logon script to disable Windows Defender in Win 7 ?
0
Comment
Question by:jtd1
  • 7
  • 6
  • 2
  • +4
19 Comments
 
LVL 35

Expert Comment

by:Kimputer
ID: 39919310
Instead of disabling it, here's how to stop it:

add a batch file for the computer startup script:

net stop WinDefend
0
 
LVL 24

Expert Comment

by:DMTechGrooup
ID: 39919327
Create a GPO for logon to apply a registry setting.. then disable it from there.. just a GPO work around.


http://support.microsoft.com/kb/927367

https://blogs.technet.com/b/askds/archive/2007/08/14/deploying-custom-registry-changes-through-group-policy.aspx
0
 
LVL 8

Expert Comment

by:N-W
ID: 39919328
There's no point it only stopping the service, it will turn itself back on automatically.

You need to stop and disable the service:
sc config WinDefend start= disabled
net stop WinDefend

Open in new window

0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 79

Expert Comment

by:David Johnson, CD, MVP
ID: 39919402
Are you using a 3rd party anti0virus? you can always uninstall windows defender. I can't see a reason for having it installed if you don't want to use it.
0
 

Author Comment

by:jtd1
ID: 39919459
I thought there was a secondary service that also had to be stopped at the same time ?
0
 
LVL 7

Expert Comment

by:Sivaraj E
ID: 39919492
It can be done in the software itself, Open the defender and click tools and then option and the administrator and un-tick the use this program and save it.

Then disable the service through services.msc.

http://www.howtogeek.com/howto/15788/how-to-uninstall-disable-and-remove-windows-defender.-also-how-turn-it-off/

Regards, Shiva
0
 
LVL 8

Expert Comment

by:N-W
ID: 39919509
For Windows 7, there is only one service "Windows Defender" (WinDefend).
0
 

Author Comment

by:jtd1
ID: 39919526
I have added the following to the login script and will see how it goes:

sc config WinDefend start= disabled
net stop WinDefend

Thanks everyone for your feedback
0
 
LVL 54

Expert Comment

by:McKnife
ID: 39919740
The logon script cannot be used to change system wide settings. The startup script needs to be used instead. But what's better: install RSAT on your administrative workstation to manage the GPOs from remote, then you will have access to all the windows defender policies.
0
 

Author Comment

by:jtd1
ID: 39920944
There are no DEFENDER GPO attributes in a 2003 FOREST/DOMAIN so using GPO settings directly is not possible.  

Adding

sc config WinDefend start= disabled
net stop WinDefend

to the logon script does not work since it requires elevated privileges.

When you say startup script, are you referring to GPO startup scripts ?
0
 
LVL 54

Expert Comment

by:McKnife
ID: 39921504
You don't understand... please install RSAT on your administrative workstation. RSAT enables even 2003 server to set GPOs for defender.

GPO startup script, yes.
0
 

Author Comment

by:jtd1
ID: 39921751
RSAT is installed, how do I go about getting access to Defender attributes for the domain ?
0
 
LVL 54

Accepted Solution

by:
McKnife earned 500 total points
ID: 39924205
You start GPMC on the RSAT machine, connect to your DC and open a new Policy. The policy will now Display windows defender sections.
0
 

Author Comment

by:jtd1
ID: 39924521
So I am just setting the one option TURN OFF WINDOWS DEFENDER (set to ENABLE) in the following:

COMPUTER CONFIGURATION\POLICIES\ADMINISTRATIVE TEMPLATES\WINDOWS COMPONENTS\WINDOWS DEFENDER

Then applying that policy to the OU of my choice and that's it ???
0
 
LVL 54

Expert Comment

by:McKnife
ID: 39924529
Right, that's it. The OU with computer objects in it will stop using windows defender after the next GPO client refresh (try at the client side with gpupdate /force or a restart to speed it up).
0
 

Author Comment

by:jtd1
ID: 39924623
Will do.  One last note:

When I did the above, if I go into one of the DC's and look at GROUP POLICY's from that 2003 server, I see the applied policy but it does not show the DEFENDER policy options.  It did show it when I created it from a WIN 7 RSAT machine but not when viewing on the 2003 server.  Normal and expected behavior ?
0
 
LVL 54

Expert Comment

by:McKnife
ID: 39924631
Yes, normal and expected. The server has no templates to interpret the syntax of the policy files. But your RSAT client has, that's how he could set those settings.
And the domain clients don't care if the DC does not "understand" the policies it hosts :)
0
 

Author Comment

by:jtd1
ID: 39924657
So the policies are in place but the 2003 DC's have no real way to see/edit them ?

Basically you are saying the newer client OS's can still benefit from newer policies even though the older 2003 DC's can't read or edit them ?

I have implemented and will test tomorrow.  Thanks for the help !
0
 
LVL 54

Expert Comment

by:McKnife
ID: 39924681
True.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Security measures require Windows be logged in using Standard User login (not Administrator).  Yet, sometimes an application has to be run “As Administrator” from a Standard User login.  This paper describes how to create a shortcut icon to launch a…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question