Files
oc-sentinel/installer/uninstall-ocsentinel.ps1
OfficeCom Codex 91c5794502
Some checks failed
OfficeCom Sentinel Client / validate-client (push) Successful in 23s
OfficeCom Sentinel Client / build-client-windows (push) Failing after 18s
Add daily scans and Ninja burst mode
2026-07-26 02:17:03 +02:00

23 lines
658 B
PowerShell

param()
$ErrorActionPreference = "Stop"
$installRoot = Join-Path ${env:ProgramFiles} "OCSentinel"
$uninstallKey = "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\OCSentinel"
foreach ($taskName in @("OCSentinel Daily Scan", "OCSentinel Burst Check")) {
if (Get-ScheduledTask -TaskName $taskName -ErrorAction SilentlyContinue) {
Unregister-ScheduledTask -TaskName $taskName -Confirm:$false
}
}
if (Test-Path $uninstallKey) {
Remove-Item -Path $uninstallKey -Force -Recurse
}
if (Test-Path $installRoot) {
Remove-Item -LiteralPath $installRoot -Force -Recurse
}
Write-Host "OfficeCom Sentinel removed from $installRoot"