Script to uninstall SEP Cloud agent?

I need a solution

We currently use SEP Small Business edition and we are having issues uninstalling the Symantec Cloud agent that is listed in the control panel. I am able to remove the main program using this Powershell command:

(Get-WmiObject -Class Win32_Product -Filter “Name=’ – Endpoint Protection'” -ComputerName . ).Uninstall()

I am trying to remove the leftover cloud agent using the following Powershell command:

(Get-WmiObject -Class Win32_Product -Filter “Name=’ – Cloud Agent'” -ComputerName . ).Uninstall()

When I run this command, it does not uninstall the Symantec Cloud agent and get the following:

__GENUS          : 2
__CLASS          : __PARAMETERS
__RELPATH        :
__DERIVATION     : {}
__SERVER         :
__NAMESPACE      :
__PATH           :
ReturnValue      : 1603
PSComputerName   :

Return value should be 0 when it is cleanly uninstalled. Anyone have any ideas? I believe the agent can be removed from the SEP managed website however it involves going to each computer and installing it.

I have several computers I need to uninstall this software want and want to script it out into a GPO if possible.



Leave a Reply