Link to home
Start Free TrialLog in
Avatar of jtd1
jtd1

asked on

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

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).
Avatar of Neale Williams
Neale Williams
Flag of Australia image

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

you may read this thread:

https://www.experts-exchange.com/questions/23447733/connect-to-hyper-v-manager-from-XP.html


hope this helps.
Avatar of jtd1
jtd1

ASKER

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 ?
Avatar of jtd1

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of James Haywood
James Haywood
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jtd1

ASKER

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.
Avatar of jtd1

ASKER

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