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 AttributeError:
AttributeError: '<win32com.gen_py.Microsoft WMI Scripting V1.2
Library.ISWbemObject instance at 0x63756808>' object has no attribute
'GetText_'

What am I missing?

I'm using Python 2.7.2 with pywin32 build 216 installed and WMI 1.4.9.
 I have tried both 64-bit python and 32-bit python with no change.
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to