+5 votes
1.8k views
Disable or uninstall Windows Defender Windows Server 2019, 2016

in Security by (551k points)
reopened | 1.8k views

1 Answer

+3 votes
Best answer

1. Disable Windows Defender Windows Server from Security
2. Disable Windows Defender Windows Server from PowerShell
3. Uninstall Windows Defender Windows Server from PowerShell
4. Uninstall Windows Defender Windows Server from CMD
4. Uninstall Windows Defender Windows Server from Server Manager

Windows Defender is the security-level solution that has been integrated into Windows systems to protect from all types of threats , whether local or external, especially from threats on the network which can have a critical impact on services and general processes of the organization since the presence of a virus can cause general effects. For this reason Windows Defender is the appropriate solution to maintain the integrity of the information, in some special cases it is possible to require that Windows Defender be deactivated or uninstalled (although it is not ideal and this occurs for reasons such as:

 

Reasons to uninstall Windows Defender
  • Purchase of a special firewall for the company
  • Support or control tasks
  • Configuration errors

 

 

 

If for any reason you need to disable or uninstall Windows Defender in Windows Server 2019, TechnoWikis will give you the different options for it..

 

To stay up to date, remember to subscribe to our YouTube channel!   SUBSCRIBE

 


1. Disable Windows Defender Windows Server from Security

 

Step 1

Windows Defender is integrated in the system security section, to deactivate Windows Defender we must go to the search engine and there we enter "security", in the displayed list we select Windows Security:

 

image

 

 

Step 2

In the open window, go to the "Virus and threat protection" section and click on "Manage settings":

 

image

 

 

Step 3

Then we must click on the "Real-time protection" switch to disable Windows Defender security:

 

image

 


2. Disable Windows Defender Windows Server from PowerShell

 

 

The PowerShell console is another of the options available for this purpose, in this case we must access the PowerShell console as administrators and there execute the following:

 Set-MpPreference -DisableRealtimeMonitoring $ true 
image

 

Note
In case we want to activate Windows Defender again from PowerShell we must execute:
 "Set-MpPreference -DisableRealtimeMonitoring $ false" 

 

Now we are going to see how to uninstall Windows Defender in Windows Server 2019.

 


3. Uninstall Windows Defender Windows Server from PowerShell

 

Step 1

Again the PowerShell console is the ally for this task, we access as administrators and we will execute the following:
 Uninstall-WindowsFeature -Name Windows-Defender 
image

 

 

Step 2

After all the information is collected we will see the following:

 

image

 

 

Step 3

There we check that Windows Defender has been uninstalled and the process will be completed when the server is restarted.

 

Note
to install Windows Defender again with this method we must execute:
 Install-WindowsFeature -Name Windows-Defender 

 


4. Uninstall Windows Defender Windows Server from CMD


The command prompt console is another of the mechanisms available to uninstall Windows Defender and this is achieved thanks to the DISM command (Deployment Image Servicing and Management) with which we can manage the system image, it should be noted that this command is much more delicate since if we run it, we not only uninstall Windows Defender but also the Windows Defender installation package is eliminated, so we cannot install it again.

 

As a reference, the order to execute with DISM is as follows: Press Enter and Windows Defender will be completely uninstalled from the server..

 Dism / online / Disable-Feature / FeatureName: Windows-Defender / Remove / NoRestart / quiet 
image

 

 


4. Uninstall Windows Defender Windows Server from Server Manager

 

Step 1

The Server Administrator is a central point in Windows Server from where we manage the team roles, to use this method we open the Server Administrator and we will go to "Manage -Remove roles and functions":

 

image

 

Step 2

The uninstall wizard will be displayed:

 

image

 

Step 3

We click Next and select the current server:

 

image

 

Step 4

In the next window we do not edit anything and we will go to the "Features" section where we locate the Windows Defender Antivirus line:

 

image

 

 

Step 5

We deactivate the Windows Defender Antivirus box:

 

image

 

 

Step 6

We click Next and we will see the summary of the action to execute:

 

image

 

 

Step 7

We click on "Remove" to complete the process:

 

image

 

 

Step 8

When this comes to an end we will see the following:

 

image

 

 

Step 9

We click Close and in all cases we must restart the system to complete the uninstallation process. Once you log in, we will be without Windows Defender.

 

 

image

 

Step 10

If we want to activate it with this method, we must go to the Server Manager and select "Add roles and functions":

 

image

 

 

Step 11

In the wizard we select the server and we will go to the "Features" section where we will locate "Windows Defender Antivirus":

 

image

 

Step 12

We activate the box to enable it:

 

image

 

 

Step 13

We click Next and after confirming we are ready to install it again in Windows Server 2016 or 2019. We click Install and when the process finishes we will see the following:

 

 

image

 

Step 14

It only remains to restart the computer so that everything is active at the level of Windows Defender in the system.

 

image

 

We have seen different ways either to deactivate or to uninstall Windows Defender in Windows Server 2016 or 2019 but always remembering that this is one of the system's built-in default security measures.

 

 


by (3.5m points)

Related questions

+5 votes
1 answer
asked May 17, 2019 in Security by backtothefuture (551k points) | 210 views
+5 votes
1 answer
+4 votes
1 answer
+4 votes
1 answer
asked Aug 21, 2019 in Windows Server by backtothefuture (551k points) | 2.6k views
+4 votes
1 answer
Sponsored articles cost $40 per post. You can contact us via Feedback
10,634 questions
10,766 answers
510 comments
3 users