2 Replies Latest reply on Apr 22, 2011 2:26 PM by Keith Schaechterle

    Uninstall Script for Symantec SEP

      I am trying to create an uninstall script for Symantec SEP, I am using blquery and reg_value to get the SEP product key and then creating an uninstall command using that value.  The script is running and the application is is getting uninstalled, however, once the uninstall has finished control is never returned so it looks like the job has hung.  I get the same results if I run the script as a Blade job or from a NSH shell.  See below for the script, any assistance would be greatly appreciated. 

       

      SEP_GUID=$(blquery -e 'reg_value ("HKEY_LOCAL_MACHINE\\SOFTWARE\\Symantec\\Symantec Endpoint Protection\\SMC\\Productcode")' | cut -c 1-38)

      echo "SEP GUID is " $SEP_GUID

      nexec -e MsiExec.exe /x $SEP_GUID /qn REBOOT=ReallySuppress SEP_GUID=$(blquery -e 'reg_value ("HKEY_LOCAL_MACHINE\\SOFTWARE\\Symantec\\Symantec Endpoint Protection\\SMC\\Productcode")' | cut -c 1-38)
      echo "SEP GUID is " $SEP_GUID
      nexec -e MsiExec.exe /x $SEP_GUID /qn REBOOT=ReallySuppress