Solved

Scripting Virtual Server to add machines?

Posted on 2007-03-19
3
185 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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 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