PoSh Remove previously managed SCOM agent

A while back a customer approached me if perhaps I knew a way to remove an agent entry from SCOM when the underlying server doesn’t exist anymore. Of course they could simply delete the agent entry from within the SCOM console manually, but the customer really wanted to include it in their automated decommissioning procedure which includes things like removing the server record from SCCM, removing the DHCP reservation and DNS records. ... READ MORE