Hyper-V Program Manager
I was surprised to find out the other day that while I have posted many sample VBScripts - I have never discussed how to configure one of these scripts to operate on a remote server running Virtual Server. This is really quite simple to do. Each script starts by creating a COM object for Virtual Server - usually with a line like this:
set vs = wscript.CreateObject("VirtualServer.Application")
To operate on a remote server you just need to change this line to:
set vs = CreateObject("VirtualServer.Application", "serverName")
And you can then continue to script against the remote Virtual Server instance just like it was a local instance. Note - however - that in order for this to work you will need to:
Cheers,Ben
---------------------------
Windows Script Host
Script: D:\Documents and Settings\Muhamad\Desktop\vbs\hi.vbs
Line: 2
Char: 5
Error: The remote server machine does not exist or is unavailable: 'GetObject'
Code: 800A01CE
Source: Microsoft VBScript runtime error
OK