Hi Abdul!
You can remove Windows email application in Microsoft System Center Configuration Manager (SCCM) with script in Powershell
Write-Output "Removing Windows 10 Mail Appx Package"
Get-AppxPackage Microsoft.windowscomminicationsapps | Remove-AppxPackage
Get-AppxPackage Microsoft.windowscomminicationsapps | Remove-AppxPackage -Allusers
if(Get-AppxPackage -Name Microsoft.windowscommunicationsapps -AllUsers){
Get-AppxPackage -Name Microsoft.windowscommunicationsapps -AllUsers | Remove-AppxPackage -AllUsers - Verbose -ErrorAction Continue
}
else{
Write-Output "Mail app is not installed for any user"
}
if(Get-ProvisionedAppxPackage -Online | Where-Object {$_.Displayname -match "Microsoft.windowscommunicationsapps"}){
Get-ProvisionedAppxPackage -Online |Where-Object {$_.DisplayName -Match "Microsoft.windowscommunicationsapps"} | Remove-AppxProvisionedPackage -Online -AllUsers -Verbose -ErrorAction Continue
}
else {
Write-Output "Mails app is not installed for the system"
}
Save the script in the next path: C:\windows\system32\windowsPowerShell\V1.0\powershell.exe -executionpolicy bypass -file ".\mailremoval.ps1"
In SCCM configuration, watch this vídeo:
https://www.youtube.com/watch?v=3F0LiyqTM9k
I hope I was helpfull
Thanks!
Gabriel Oliveira