Disable IE 11 on Windows Server 2012 R2

IE 11 is installed on Windows Server by default. There is no way to uninstall IE on Control Panel — but we can disable it. Either Method 2 or Method 4 on https://learn.microsoft.com/en-us/troubleshoot/developer/browsers/installation/disable-internet-explorer-windows might work.

Method 2 cmd:

dism /online /Remove-Capability /CapabilityName:Browser.InternetExplorer~~~~0.0.11.0

Method 4 cmd:

dism /online /Disable-Feature /FeatureName:Internet-Explorer-Optional-amd64