#Script to remove Internet Explorer 11 from Win10/11 devices
$IECheck = Get-WindowsOptionalFeature -Online | Where {$_.FeatureName -eq "Internet-Explorer-Optional-amd64"}
if($IECheck.State -ne "Disabled"){
    Disable-WindowsOptionalFeature -FeatureName Internet-Explorer-Optional-amd64 -Online -NoRestart | Out-Null
}
