There is an entire library of free PowerShell scripts for Hyper-V 2008r2 management at: www.codeplex.com/psHyperV.
There is an entire library of Hyper-V Cmdlets in Windows PowerShell 3.0 for Hyper-v Server 20012
There are helpful, free, Hyper-V scripts available on the Script Center Gallery.

You can find many, many more Hyper-V scripts on the web, including: 

Get notifications about new free virtualization scripts in the Script Center Gallery with this RSS feed: http://gallery.technet.microsoft.com/ScriptCenter/en-us/site/feeds/searchRss?f%5B0%5D.Type=SearchText&f%5B0%5D.Value=tonyso&f%5B1%5D.Type=RootCategory&f%5B1%5D.Value=servers&f%5B1%5D.Text=Servers&f%5B2%5D.Type=SubCategory&f%5B2%5D.Value=virtual&f%5B2%5D.Text=Virtual%20Server&sortBy=Relevance


See Also