<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.sophos.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Cannot Uninstall SESC From Endpoints (using MsiExec)</title><link>https://community.sophos.com/on-premise-endpoint/f/sophos-endpoint-software/127008/cannot-uninstall-sesc-from-endpoints-using-msiexec</link><description>I&amp;#39;ve referenced the following KB on removing SEC from endpoints using MsiExec.exe after running a Reg Query. When using the syntax in the KB (only the GUID between curly braces), it only results in a Windows Installer popup (i.e. it doesn&amp;#39;t do anything</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Cannot Uninstall SESC From Endpoints (using MsiExec)</title><link>https://community.sophos.com/thread/465282?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 14:18:25 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:bac4c681-558c-49e3-b525-8d634284d726</guid><dc:creator>Eric Meinders</dc:creator><description>&lt;p&gt;Thanks Christian,&lt;/p&gt;
&lt;p&gt;themoreyouknow.gif&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot Uninstall SESC From Endpoints (using MsiExec)</title><link>https://community.sophos.com/thread/465281?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 14:14:01 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:681d8a70-ac03-45fe-bc1d-d05aa8a552e3</guid><dc:creator>QC</dc:creator><description>&lt;p&gt;Hello &lt;span&gt;Eric Meinders&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;the quotes are a requirement of PowerShell, the old shell (cmd) and script engines don&amp;#39;t require them.&lt;/p&gt;
&lt;p&gt;Christian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot Uninstall SESC From Endpoints (using MsiExec)</title><link>https://community.sophos.com/thread/465280?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 14:08:01 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:6e8384a1-270b-47a1-a6fa-5c2a64596b1e</guid><dc:creator>Eric Meinders</dc:creator><description>&lt;p&gt;I think your reply just highlighted the issue -- the quotes are required.&amp;nbsp; Per the KB, the syntax is msiexec.exe /X{GUID} but it looks like this needs to be changed to msiexec.exe /X&amp;quot;{GUID}&amp;quot;.&amp;nbsp; I haven&amp;#39;t tested with /qn or reboot suppression yet, but it would appear the local/manual msiexec.exe commands work now with the quotes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot Uninstall SESC From Endpoints (using MsiExec)</title><link>https://community.sophos.com/thread/465265?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 11:41:40 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:75cb7157-ff7b-4a58-9dee-9d57244453c7</guid><dc:creator>Sophos User930</dc:creator><description>&lt;p&gt;In that case, you probably just want to do a foreach product where Publisher match Sophos.&lt;/p&gt;
&lt;p&gt;Some will be MSI, some will not, so these are 2 cases to handle.&lt;/p&gt;
&lt;p&gt;The ones that aren&amp;#39;t MSI based, the exe may require additional switches to the value in the uninstallstring.&amp;nbsp; So you probably will need to account for that.&lt;/p&gt;
&lt;p&gt;What about this as a starting point.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/3/productremove.ps1.txt"&gt;/cfs-file/__key/communityserver-discussions-components-files/3/productremove.ps1.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve defaulted it not to run the uninstall commands just print them.&lt;/p&gt;
&lt;p&gt;Set&amp;nbsp;$Uninstall = $false to&amp;nbsp;$Uninstall = $true.&lt;/p&gt;
&lt;p&gt;Also, I&amp;#39;ve not populated:&lt;br /&gt;&lt;br /&gt;$ProductData = @(&lt;br /&gt; [PSCustomObject]@{DisplayName = &amp;#39;&amp;#39;; AdditionalUninstallArgument =&amp;#39;&amp;#39; }&lt;br /&gt; [PSCustomObject]@{DisplayName = &amp;#39;&amp;#39;; AdditionalUninstallArgument =&amp;#39;&amp;#39; }&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;But this is where you would put the DisplayName of the component and any additional command line options to supply when running the removal of it.&lt;/p&gt;
&lt;p&gt;Believe it or not, I&amp;#39;ve not actually tested it beyond just printing out the commands but maybe something to start with,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot Uninstall SESC From Endpoints (using MsiExec)</title><link>https://community.sophos.com/thread/465260?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 09:38:36 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:f48e3afd-9d97-4587-a8f6-a98f86db9a10</guid><dc:creator>QC</dc:creator><description>&lt;p&gt;Hello &lt;span&gt;Eric Meinders&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new, courier;"&gt;msiexec.exe /x {&lt;em&gt;GUID&lt;/em&gt;}&lt;/span&gt; is the correct format. That you get the Windows &lt;em&gt;Installer popup&lt;/em&gt; suggests a syntax error, specifically a missing &lt;span style="font-family:courier new, courier;"&gt;/option&lt;/span&gt; (e.g. the /x). Did you indeed use &lt;span style="font-family:courier new, courier;"&gt;msiexec.exe /x&amp;quot;{FED1005D-CBC8-45D5-A288-FFC7BB304121}&amp;quot;&lt;/span&gt;? Even with a non-existing product code you should get the &lt;em&gt;Are you sure ...&lt;/em&gt; prompt.&lt;br /&gt;The full path is interpreted as path to a &lt;span style="font-family:courier new, courier;"&gt;Product.msi&lt;/span&gt;, i.e. an installer package in the file system, not to the meta-information in the registry. That&amp;#39;s why you get the &lt;em&gt;could not be opened&lt;/em&gt; error..&lt;/p&gt;
&lt;p&gt;@Sophos User930: This is the on-premise SESC, there is no &lt;em&gt;Sophos Endpoint Agent&lt;/em&gt; and hence no &lt;span style="font-family:courier new, courier;"&gt;uninstallcli.exe&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Christian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot Delete SEC From Devices (MsiExec)</title><link>https://community.sophos.com/thread/465186?ContentTypeID=1</link><pubDate>Mon, 05 Apr 2021 10:49:40 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:3326beac-c5c7-49d8-88a9-b1e8cae392b4</guid><dc:creator>Sophos User930</dc:creator><description>&lt;p&gt;Does the&amp;nbsp;uninstallcli.exe (C:\Program Files\Sophos\Sophos Endpoint Agent\) not help or are things broken?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot Delete SEC From Devices (MsiExec)</title><link>https://community.sophos.com/thread/465169?ContentTypeID=1</link><pubDate>Mon, 05 Apr 2021 08:33:07 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:49a1769f-491f-4fd6-892d-5fd272c29b9c</guid><dc:creator>GlennSen</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Eric,&lt;/p&gt;
&lt;p&gt;With regards to this query, I would suggest you reach your TAM and discussed this as Profisional Services might be required to archive this script removal on your environment. If you don&amp;#39;t know your TAM, you can drop an DM to me and I&amp;#39;ll provide it to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>