# IT Nexus Agent - Uninstaller
$InstallDir = "C:\Program Files\IT Nexus Agent"
$TaskName   = "IT Nexus Agent"

Write-Host "=== IT Nexus Agent Deinstallation ===" -ForegroundColor Yellow
Unregister-ScheduledTask -TaskName $TaskName -Confirm:$false -ErrorAction SilentlyContinue
Remove-Item -Path $InstallDir -Recurse -Force -ErrorAction SilentlyContinue
Write-Host "Agent entfernt." -ForegroundColor Green
