<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Shell script for removing Cortex XDR from multiple MacBooks in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/shell-script-for-removing-cortex-xdr-from-multiple-macbooks/m-p/517074#M2963</link>
    <description>&lt;P&gt;Hi David, I hope that it is not so late but, I think I would share with you something I did for solving this problem that I had to face as well.&lt;/P&gt;
&lt;P&gt;The case is that Cortex xdr have some processes that are running on the endpoints, these processes must be stopped before executing any kind&amp;nbsp; of unintalling procedure. Cytool is a tool that Cortex has when Cortex was installed on the endpoint. So, you need to stop these processes by executing:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;cytool stop&amp;nbsp;echo "whatever your password is" | sudo -b /Library/Application\ Support/PaloAltoNetworks/Traps/bin/cytool runtime stop all&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;echo " " | sudo -b /Library/Application\ Support/PaloAltoNetworks/Traps/bin/cytool runtime stop all&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After that you can uninstall /clean Cortex xxdr from the endpoints.&lt;/P&gt;
&lt;P&gt;Hope that it is going to help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;</description>
    <pubDate>Fri, 07 Oct 2022 08:05:11 GMT</pubDate>
    <dc:creator>Marco007</dc:creator>
    <dc:date>2022-10-07T08:05:11Z</dc:date>
    <item>
      <title>Shell script for removing Cortex XDR from multiple MacBooks</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/shell-script-for-removing-cortex-xdr-from-multiple-macbooks/m-p/513845#M2757</link>
      <description>&lt;P&gt;So, as the subject suggests, my colleagues and I are working on a method to uninstall the Cortex XDR agent from of number of computers (Macs). We do utilize the JAMF MDM here and hence why we are working on a script, however I cannot help but to think simply using the tenant to remove these clients would be sufficient but I digress. If we could call the uninstaller from Terminal and "pass" the uninstall password that might work but I'm jumping around here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;*Note: All MacBooks are Monterey with a small number still on BigSur&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Has anyone written any scripts or have any ideas/suggestions regarding how this may be approached? We can easily remove any leftover folders/files but one with the .app extension may be problematic. This is what we've come up with so far, nothing fancy, but semi-operable. There are concerns associated with the .app file extension running in terminal properly. (I know the "rm" command" precedes it below but disregard).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;STRONG&gt;cd /tmp &amp;amp;&amp;amp; unzip "/Library/Application Support/JAMF/Waiting Room/Cortex_Mac_7_7_0_2356.zip" &amp;amp;&amp;amp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=""&gt;/usr/sbin/installer -allowUntrusted -pkg "Cortex XDR.pkg" -target / &amp;amp;&amp;amp;&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;rm -fdr&amp;nbsp;&lt;STRONG&gt;"Cortex XDR &lt;A href="https://Uninstaller.app" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Uninstaller.app&lt;STRONG&gt;"&lt;SPAN class=""&gt; &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;rm -fdr "Cortex XDR.pkg" &amp;amp;&amp;amp;&lt;/P&gt;
&lt;P class=""&gt;rm -fdr Config.xml &amp;amp;&amp;amp;&lt;/P&gt;
&lt;P class=""&gt;rm -fdr "/Library/Application Support/JAMF/Waiting Room/Cortex_Mac_7_7_0_2356.zip" &amp;amp;&amp;amp;&lt;/P&gt;
&lt;P class=""&gt;rm -fdr "/Library/Application Support/JAMF/Waiting Room/Cortex_Mac_7_7_0_2356.zip.cache.xml"&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Any help or suggestions would be appreciated!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thanks in advance...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DB&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 16:05:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/shell-script-for-removing-cortex-xdr-from-multiple-macbooks/m-p/513845#M2757</guid>
      <dc:creator>David_Burton</dc:creator>
      <dc:date>2022-09-02T16:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script for removing Cortex XDR from multiple MacBooks</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/shell-script-for-removing-cortex-xdr-from-multiple-macbooks/m-p/514062#M2764</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi David,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Utilizing the Cortex XDR management console to uninstall the Cortex XDR agent for macOS operating systems is currently the recommended practice. This can be done by:&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;Running the Cortex XDR agent uninstaller (this is part of the installation package downloaded from the Cortex XDR management console found at Endpoints &amp;gt; Endpoint Management &amp;gt; Agent Installations)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;Entering the Cortex XDR agent uninstall password (this is defined in Configurations &amp;gt; Agent Configurations)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;Entering the macOS credentials for a user that has permission to uninstall apps&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;More information can be found on the agent administrator documentation to uninstall the agent for Mac:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.paloaltonetworks.com/cortex/cortex-xdr/7-7/cortex-xdr-agent-admin/cortex-xdr-agent-for-mac/uninstall-the-cortex-xdr-agent-for-mac" target="_blank"&gt;https://docs.paloaltonetworks.com/cortex/cortex-xdr/7-7/cortex-xdr-agent-admin/cortex-xdr-agent-for-mac/uninstall-the-cortex-xdr-agent-for-mac&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Additionally, our documentation team is currently developing instructions for uninstalling the macOS agent using JAMF and I can update you in the LiveCommunity when an implementation has been made.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 14:57:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/shell-script-for-removing-cortex-xdr-from-multiple-macbooks/m-p/514062#M2764</guid>
      <dc:creator>mfakhouri</dc:creator>
      <dc:date>2022-09-06T14:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script for removing Cortex XDR from multiple MacBooks</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/shell-script-for-removing-cortex-xdr-from-multiple-macbooks/m-p/517074#M2963</link>
      <description>&lt;P&gt;Hi David, I hope that it is not so late but, I think I would share with you something I did for solving this problem that I had to face as well.&lt;/P&gt;
&lt;P&gt;The case is that Cortex xdr have some processes that are running on the endpoints, these processes must be stopped before executing any kind&amp;nbsp; of unintalling procedure. Cytool is a tool that Cortex has when Cortex was installed on the endpoint. So, you need to stop these processes by executing:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;cytool stop&amp;nbsp;echo "whatever your password is" | sudo -b /Library/Application\ Support/PaloAltoNetworks/Traps/bin/cytool runtime stop all&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;echo " " | sudo -b /Library/Application\ Support/PaloAltoNetworks/Traps/bin/cytool runtime stop all&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After that you can uninstall /clean Cortex xxdr from the endpoints.&lt;/P&gt;
&lt;P&gt;Hope that it is going to help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 08:05:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/shell-script-for-removing-cortex-xdr-from-multiple-macbooks/m-p/517074#M2963</guid>
      <dc:creator>Marco007</dc:creator>
      <dc:date>2022-10-07T08:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script for removing Cortex XDR from multiple MacBooks</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/shell-script-for-removing-cortex-xdr-from-multiple-macbooks/m-p/593962#M7025</link>
      <description>&lt;P&gt;&lt;A id="link_17" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/223246" target="_self" aria-label="View Profile of mfakhouri"&gt;&lt;SPAN class=""&gt;Hi mfakhouri,&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;since this one is a bit older, was your documentation team able to write down the instructions for uninstalling the macOS agent using JAMF?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 05:51:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/shell-script-for-removing-cortex-xdr-from-multiple-macbooks/m-p/593962#M7025</guid>
      <dc:creator>D.Ahrendt</dc:creator>
      <dc:date>2024-08-05T05:51:22Z</dc:date>
    </item>
  </channel>
</rss>

