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

cancel
Showing results for 
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.

 

--gjenkins
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!