Sample scripts are bundled with VSDM in its installation folder (by default C:\Program Files\VSDM\samples). It is recommended that you have some understanding of the VSDM solution before continuing to read this article.
Option
' This variable points to your VSDM server root' e.g.: http://yourserver:81
' These variables define your VM name and template used
' Random number to avoid collision when running this sample
Set wsh = CreateObject("WScript.Shell")Set inet = CreateObject("InternetExplorer.Application")
' Building your VM name
' URL to create a new VM
'WScript.Echo "Create <[" & newVM & "]>"
' Call the Internet object to perform the action
' Wait the request to complete
WScript.Echo