I took some of the common maintenance routines and put them into a
PowerShell script. We will be using this internally at our
orgainzation as we migrate from some of our old maintenance routines.
Feel free to check out the scripts here:
http://www.codeplex.com/PSvss
I hope this can help someone.