During the last two weeks I have been upgrading a large DPM 2007 installation to DPM 2010. After the upgrade was done I noticed that some agents appeared that the customer didn’t protect ant longer.
The agents information were present on the secondary DPM server, on the primary everything looked ok.
To remove those agent records I used the new PowerShell script, Remove-ProductionServer.ps1 and it worked like a charm!
Just run the script, use FQDN for the DPM server and the production server.