I recently received a new windows 5.3.1 MSI agent with 5 scripts instead of the usual 4.
What is scan-agentcleanup.snow-ps1 used for ?
This script is not meant to be published with every agent, it solves a very specific issue with duplicate agent entries in Add / Remove Programs. It is however harmless to run even when you do not have the issue.
Some releases of the agent entered an incorrect GUID in the registry, and when you installed a newer agent you would see the Inventory Agent twice in Add / Remove Programs, even though there only was one agent installed.
The script will remove the faulty GUIDs from the registry if they exist.
Retrieving data ...