BAT Script to uninstall Cortex using Agent cleaner with disabling tampering protection

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BAT Script to uninstall Cortex using Agent cleaner with disabling tampering protection

Hi folks,

 

Could you help me plaease to know how can i create a bat script to execute Cortex Agent cleaner with anti tampering password to remove cortex agents?

 

I have to use bat because powershell is prohibited

1 REPLY 1

L4 Transporter

Hi @Daniel_RuizPadilla,

 

Here's what I've been able to dig up from Support cases:

 

@echo off
echo Password123|"%ProgramFiles%\Palo Alto Networks\Traps\cytool.exe" protect disable
xdragentcleaner.exe --silent --password Password123 --log c:\remove.log
shutdown.exe /r /t 00

 

Note 1: On Windows 10, I had to suppress change notifications to "never notify" here: Security and Maintenance > Change User Account Control Settings > Reduce to "Never notify."

Note 2: I had to put the bat file in the folder with all of the decompressed XDR agent cleaner files.

 

I would suggest trying it on a few machines before attempting large numbers of endpoints.

 

Visit our Cortex XDR Customer Corner on Live Community to access resources for your product journey, engage in discussions with community members and subject matter experts, and register for upcoming events!

*Cortex XDR Customer Corner: https://live.paloaltonetworks.com/t5/cortex-xdr-customer-corner/ct-p/Cortex_XDR_Customer_Corner

Join our Cortex XDR Office Hours to receive live guidance and training from our Customer Success Architects.

*Cortex XDR Office Hours [NAM]: https://paloaltonetworks.zoom.us/webinar/register/3316669859020/WN_yMpAB-aBTt6xk2h-gsra4w
*Cortex XDR Office Hours [EMEA/APAC]: https://paloaltonetworks.zoom.us/webinar/register/4116709604301/WN_CZuFE5CHQbG9LUEqugsIOw
  • 8151 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!