ICACLS 'C:\Program Files\Windows Mail' /T /Grant:R 'Administrators':(OI)(CI)F
:: Grant full control to Administrators, the user running this, and SYSTEM TakeOwn /F 'C:\Program Files (x86)\Windows Mail' /R /D Y TakeOwn /F 'C:\Program Files\Windows Mail' /R /D Y If you want WinMail permanently gone from your system, this simple BAT file will do it: :: Take ownership of the folders The other suggestions will disable or only rename the file. The OP's question was how to remove WinMail from a computer.