I’m trying to uninstall Symantec Endpoint Protection on several of our machines using only the command prompt and not requiring any user input. This is the command I’ve been using:
wmic product where (name = “symantec endpoint protection”) call uninstall
This worked for the majority of the time, but some machines (~40) say that the method has completed, but return an error code and don't actually uninstall. They either return a 1603 or a 1622.
Here is a link to the error code meanings: https://cloudywindows.io/windowsinstallererrorcodes/
1603 Fatal error during installation
1622 Error opening installation log file. Verify that the specified log file location exists and is writable
The command prompt is elevated to SYSTEM, so it shouldn't be a permissions issue.
I've also tried doing this in PowerShell with similar results using this command:
(Get-WmiObject -Class Win32_Product -Filter "Name='Symantec Endpoint Protection'" -ComputerName COMPUTERNAME).Uninstall()
Does anyone know what the issue is, or know of any Symantec uninstall utility that can be run from the command line? I'd like to not have to restart the computer and not require user input as well.
Thanks in advance!