start a vm from command line in Hyper-V 2008 R2

jtd1
jtd1 used Ask the Experts™
on
There must be a easy way to do simple management of VM's from either the command line or PowerShell that is built into Hyper-V 2008 R2 stand alone server ?

Just trying to find the basics - start, stop, view status - of the Virtual Machines rrunning on a Hyper_V 2008 R2 server (not Windows 2008 running Hyper-V role).
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
hyper-V manager would be a good tool for you..

you may read this thread:

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2008/Q_23447733.html


hope this helps.
How to Generate Services Revenue the Easiest Way

This Tuesday! Learn key insights about modern cyber protection services & gain practical strategies to skyrocket business:

- What it takes to build a cloud service portfolio
- How to determine which services will help your unique business grow
- Various use-cases and examples

Author

Commented:
nealerocks - hoping not to get into VB scripts - just hoping for simplke Powershell commands

bcoyxp - want to do this rom the console of the Hyper-V server, not an external machine Win7, Vista or otherwise.

sudhakaral - I see this solution before but it is refering to  Hyper-V on a Windows 2008 server, not the stand alone Hyper-V 2008 R2 server which already has PowerSHell loaded and I assume some sort of management capabiltity.  It talks about loading a VM Management tool but is it compatible with the standa alone server ??  Is it already there and I'm just trying to figure out how to use it ?  Thoughts ?

Author

Commented:
Just to be clear, I am trying to do this on the stand alone Hyper-V 2008 R2 server, not a Win2008 server with Hyper-V.
Download this http://pshyperv.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=38769

You can then run simple tasks like start-vm etc

Author

Commented:
hhaywood000 - I had a quick look before.  Are you sure these apply to Hyper-V 2008 R2 and not just to the Hyper-V role on 2008 server ?
Yes it should work fine. Hyper-V R2 supports powershell natively.

Author

Commented:
Ill give it a try and let you know

Thanks
This demonstration will show you how to utilize powershell and WMI to achieve what your are looking for.

http://technet.microsoft.com/en-us/virtualization/cc952342.aspx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial