Script to Clean expired updates from update lists, packages and deployments

<—My college Kurt has pointed out to me that the code snip to trigger the update synchronization has some problem. So I remove that. As a workaround, you can trigger a full update synchronization from the UI–>   If you use Software Update Point (SUP) in a System Center Configuration Manager 2007 hierarchy, you may…