Solved

Powershell script to create vm from template

Posted on 2013-06-20
9
578 Views
Last Modified: 2013-12-19
Hello,
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
cluster
template
customization specs
datastore
number of disks and size with disk format (Thin or Thick)
Folder
Vlan
Processor
RAM
IP address,Subnet Mask, default gateway, DNS


Thanks
0
Comment
Question by:izharkhan
  • 3
  • 3
9 Comments
 
LVL 80

Expert Comment

by:David Johnson, CD, MVP
ID: 39264831
which server operating system?  Which version of powershell?
0
 

Author Comment

by:izharkhan
ID: 39264835
windows 2003/2008/2008 R2 and powershell version 2.0
0
 
LVL 80

Expert Comment

by:David Johnson, CD, MVP
ID: 39264848
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.
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

Author Comment

by:izharkhan
ID: 39264854
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.
0
 
LVL 80

Expert Comment

by:David Johnson, CD, MVP
ID: 39268910
0
 
LVL 17

Accepted Solution

by:
Dushan De Silva earned 500 total points
ID: 39270445
0
 

Author Comment

by:izharkhan
ID: 39271668
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Issue: One Windows 2008 R2 64bit server on the network unable to connect to a buffalo Device (Linkstation) with firmware version 1.56. There are a total of four servers on the network this being one of them. Troubleshooting Steps: Connect via h…
Ransomware is a malware that is again in the list of security  concerns. Not only for companies, but also for Government security and  even at personal use. IT departments should be aware and have the right  knowledge to how to fight it.
The viewer will learn how to count occurrences of each item in an array.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question