Solved

Scripting Virtual Server to add machines?

Posted on 2007-03-19
3
180 Views
Last Modified: 2010-04-18
Is it possible to create a script that will create/add a whole set of virtual machines on to an instance of Virtual Server rather than running through the 'add machine' function in Virtual Server 2005 R2?

We are currently going through a virtualisation implementation and are having to move machines around quite a bit.

Any ideas?
0
Comment
Question by:ddh76
3 Comments
 
LVL 3

Accepted Solution

by:
mattedk earned 250 total points
ID: 18747743
On Error Resume Next

Set objVS = CreateObject("VirtualServer.Application")
errReturn = objVS.CreateVirtualMachine("Scripted Machine", _
    "C:\Scripts\Shared Virtual Machines\Scripted")

-------

http://www.microsoft.com/technet/scriptcenter/scripts/vs/default.mspx?mfr=true

You can find more examples here
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20286945
Forced accept.

Computer101
EE Admin
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

773 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