Attached are the scripts that I used in my presentation at www.Techfusemn.com for the SCCM 2007 with PowerShell session.

https://emptygarden.info/wp-content/uploads/2011/03/techfusemn-2011-sccm-2007-with-powershell.docx