0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Palo Alto Networks Cortex XDR Agentのアンインストールスクリプト

Last updated at Posted at 2025-02-26

Unattendedなアンインストールをしたい場合にどうぞ。
使い方はuninstall.ps1を直接実行するか、uninstall.batと同時に配信してuninstall.batを実行すると数分でアンインストールできます。

uninstall.ps1
$password = "<ここにアンインストールPWを指定>"
$cytoolPath = 'C:\Program Files\Palo Alto Networks\Traps\cytool.exe'
$processStartInfo = New-Object System.Diagnostics.ProcessStartInfo
$processStartInfo.FileName = $cytoolPath
$processStartInfo.Arguments = "protect disable"
$processStartInfo.RedirectStandardInput = $true
$processStartInfo.UseShellExecute = $false
$process = [System.Diagnostics.Process]::Start($processStartInfo)
$process.StandardInput.WriteLine($password)
$process.StandardInput.Close()
$process.WaitForExit()

(Get-WmiObject -Class Win32_Product | Where-Object {$_.Name -like "*Cortex XDR*"}).Uninstall()
uninstall.bat
cd %~dp0
powershell.exe -ExecutionPolicy Bypass -File uninstall.ps1 -verb runas
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?