Files
oc-sentinel/installer/server-uninstall-attacktracer-ninja-server.ps1
2026-07-17 00:39:28 +02:00

17 lines
454 B
PowerShell

param()
$ErrorActionPreference = "Stop"
$installRoot = Join-Path ${env:ProgramFiles} "AttackTracerNinjaServer"
$uninstallKey = "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\AttackTracerNinjaServer"
if (Test-Path $uninstallKey) {
Remove-Item -Path $uninstallKey -Force -Recurse
}
if (Test-Path $installRoot) {
Remove-Item -LiteralPath $installRoot -Force -Recurse
}
Write-Host "AttackTracerNinjaServer removed from $installRoot"