I'm using WMI to (attempt to) add a sythetic ethernet port to a
Hyper-V VM. I'm getting the following error when I do so:
'testvm' failed to add device 'Microsoft Synthetic Ethernet Port'.
(Virtual machine ID B4A091C9-D1AD-4AA9-960D-64E64F620959)
The job has an error code of 32785, but I can
On Fri, Aug 5, 2011 at 4:16 AM, M Saunders TAS saunders...@we-learn.com wrote:
Does c.Msvm_VirtualSystemManagementService()[0] actually return anything?
Yes. This returns a wmi_object:
_wmi_object:
I have just tested this on another box, and compiling the Microsoft WMI
Scripting Library typelib definitely breaks it.
Where does makepy write its generated files? Is it possible to unmake
this typelib?
___
python-win32 mailing list
Try:
%TEMP%\gen_py\2.x\...
That seemed to contain some dummies, but I was able to locate files
that had content in site-packages\win32com\gen_py. After deleting the
contents of this directory and regenerating only WMI Scripting and
WMICntl the code works.
(PS Mitch, can you subscribe to the
I am attempting to work through WMI to control some Hyper-V VMs. I am
unable to call GetText_.
Given the following code:
import wmi
c = wmi.WMI(computer='remoteserver', namespace='virtualization')
mgtSvcs = c.Msvm_VirtualSystemManagementService()[0]
mgtSvcs.GetText_(1)
Returns an