Sanitize Agent Script
The latest Sanitize Agent script, SanitizeAgent_13.6.1.ps1, is targeted for SDP/Greyhound-era Agent cleanup, especially around interrupted scans and distributed-search state.
The latest Sanitize Agent script, SanitizeAgent_13.6.1.ps1, is targeted for SDP/Greyhound-era Agent cleanup, especially around interrupted scans and distributed-search state.
The script is meant to clear stale distributed search/task/progress state without wiping the entire Console application folder.
What does the Updated Sanitize Agent Script Do?
This is a Spirion Agent cleanup/sanitize script for Windows Agents.
Note the following key points about the script:
- It requires Administrator rights.
- It clears the console screen.
- It Force-stops these processes if they are currently running:
IdentityFinderCmdIdentityFinderidfEndpoint
- It Stops the following service:
IdentityFinderMessagingService
- It deletes these folders if they exist on the Agent machine:
- C:\ProgramData\Identity Finder\Application\Console\DistributedSearchInfo
- C:\ProgramData\Identity Finder\MCData
- C:\ProgramData\Identity Finder\Tasks
- C:\ProgramData\Identity Finder\TasksMonitor
- C:\ProgramData\Identity Finder\ScanProgress
- C:\ProgramData\Identity Finder\AdminData
- C:\Windows\Temp\IDFTmpDir
- %TEMP%\IDFTmpDir
- The script restarts the following services:
IdentityFinderMessagingServiceIdentityFinderEndpointService
- The script writes an empty marker/log file such as:
- C:\ProgramData\Identity Finder\Logs\SanitizeAgent.MMddyyyy.HHmmss.txt
Key differences from SanitizeAgentv2 1.ps1
Compared with the older v2 script the latest script:
- Stops/starts
IdentityFinderMessagingServiceinstead ofIdentityFinderService. - Deletes only
Application\Console\DistributedSearchInfoinstead of the broaderApplication\Consolefolder. - Explicitly deletes the directory
C:\Windows\Temp\IDFTmpDir. - Writes a timestamped text file -
SanitizeAgent...txt- to the directory "C:\ProgramData\Identity Finder\Logs" - As with previous scripts this script still restarts the service
IdentityFinderEndpointService.