Disable Internet Explorer via PowerShell

Internet Explorer lags far behind Chrome and Firefox in security. Microsoft Edge is even switching to Chrome to power its newest browser. It is safest to disable IE to force users to use more secure browsers.

Disable-WindowsOptionalFeature -FeatureName Internet-Explorer-Optional-amd64 –Online

and if you need to re-enable:
Enable-WindowsOptionalFeature -FeatureName Internet-Explorer-Optional-amd64 –Online

source link