回答:经过一些研究,不知如下的文章,对您是否有用。谢谢
Hyper-V How To: Script VM Functions
http://blogs.technet.com/b/tonyso/archive/2008/10/30/hyper-v-how-to-script-vm-functions.aspx
PS - Shut Down VM
http://gallery.technet.microsoft.com/ScriptCenter/en-us/f2f81afb-202c-49fa-a3c8-ab7153cafe05
Shutting down a Hyper-V Virtual Machine
http://blogs.msdn.com/b/virtual_pc_guy/archive/2008/01/30/shutting-down-a-hyper-v-virtual-machine.aspx
Detect VM
http://gallery.technet.microsoft.com/ScriptCenter/en-us/bdc4578d-0539-437f-9652-c33c710e65aa
Tony Spoer的博客
http://dungkhoang.spaces.live.com
不过,不少powershell也需要和SCVMM结合使用。但SCVMM里介绍的powershell的使用方法,也是很有用的。
Windows PowerShell Virtual Machine Manager Cmdlet Reference
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=643C96AC-AB5C-4470-BD03-F32981BC3013&displaylang=en
More on the accessing the Hyper-V API from Powershell
http://blogs.technet.com/b/jamesone/archive/2008/04/19/more-on-the-accessing-the-hyper-v-api-from-powershell.aspx
Starting a Hyper-V Virtual Machine
http://blogs.msdn.com/b/virtual_pc_guy/archive/2008/01/29/starting-a-hyper-v-virtual-machine.aspx
命令总结:
PowerShell Management Library for Hyper-V
http://pshyperv.codeplex.com/
Lamb Shu
Hyper-V脚本的相关文章请参考
http://www.googlesyndicatedsearch.com/u/blogbus?hl=zh-CN&inlang=zh-CN&newwindow=1&ie=GB2312&q=site%3Agnaw0725.blogbus.com+Hyper-V%BD%C5%B1%BE
Hyper-V的更多文章请参考 Hyper-V技术
http://gnaw0725.blogbus.com/logs/105099264.html
==========
这里还有一些参考:
http://hi.baidu.com/wzdqa/blog/item/aabf15a0df9de18246106432.html
http://blogs.technet.com/b/tonyso/archive/2008/10/30/hyper-v-how-to-script-vm-functions.aspx
http://msdn.microsoft.com/zh-cn/library/cc136992(en-us,VS.85).aspx