How to create new Hyper-V role in Windows Server 2008-64 bit using powershell script.

Apr 9, 2009 at 9:30 AM
In one of my project, i need to setup the environment by using only powershell scripts. Starting from creating Hyper-V roles on 64-bit windows server, then creating VMs, creating VHD and attaching disk to VMs and ISO images to VM. After that installing the IIS and SQL server 2008 on all the VMs silently  by using Powershell.
How can i create Hyper-V roles in windows server by using powershell scripts? Also how can we install and configure IIS and SQL Server on VM through powershell scripts silently (no interaction with setup exe)?

Thanks in advance for the help......