- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
02-12-2021 11:30 AM
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
02-12-2021 04:22 PM
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.
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!