14 lines
466 B
PowerShell
14 lines
466 B
PowerShell
#Requires -RunAsAdministrator
|
|
<#
|
|
.SYNOPSIS
|
|
Manually triggers GuruScan post-scan cleanup (removes scanner files).
|
|
Normally this runs automatically via the GuruRMM-ScannerCleanup scheduled task.
|
|
#>
|
|
$moduleManifest = Join-Path $PSScriptRoot 'GuruScan.psd1'
|
|
if (-not (Test-Path $moduleManifest)) {
|
|
Write-Host "[ERROR] GuruScan module not found: $moduleManifest" -ForegroundColor Red
|
|
exit 1
|
|
}
|
|
Import-Module $moduleManifest -Force
|
|
Invoke-PostRebootCleanup
|