Powershell script to create vm from template

I need powershell script to create virtual machine. It should get following info from exel or .csv file and create a virtual machine.

server name
customization specs
number of disks and size with disk format (Thin or Thick)
IP address,Subnet Mask, default gateway, DNS

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
which server operating system?  Which version of powershell?
izharkhanAuthor Commented:
windows 2003/2008/2008 R2 and powershell version 2.0
David Johnson, CD, MVPOwnerCommented:
For something like this, Microsoft created the Microsoft System Center Virtual Machine Manager. The necessary commandlets are only included in PowerShell 3.0 and maybe only with Server 2012 with Hyper-V role enabled.
Network Scalability - Handle Complex Environments

Monitor your entire network from a single platform. Free 30 Day Trial Now!

izharkhanAuthor Commented:
My client cant afford SCVMM. and if version powershell 3.0 has capability to create a script or if it can be done by powercli , i am fine with it. i checked lots of scripts online that supports 2003 and 2008 servers as well. but i have specific requirement which i posted.

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
izharkhanAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.