Hello,
I found a site that has code for turning off a virtual machine. I get a syntax error when trying to compile on the objVM.Turnoff(). How can I code this to work? I took it right from the website.
Thanks!
I found a site that has code for turning off a virtual machine. I get a syntax error when trying to compile on the objVM.Turnoff(). How can I code this to work? I took it right from the website.
Thanks!
Code:
On Error Resume Next
Set objVS = CreateObject("VirtualServer.Application")
Set objVM = objVS.FindVirtualMachine("Windows 2000 Server")
objVM.Turnoff()