Hi, The code works fine for me.
I'm equally using python 2.7.2, pywin32 216 and WMI 1.4.9 (have also tested against 1.4.6). Does c.Msvm_VirtualSystemManagementService()[0] actually return anything? Matt -----Original Message----- From: python-win32-bounces+saunders.m3=we-learn....@python.org [mailto:python-win32-bounces+saunders.m3=we-learn....@python.org] On Behalf Of Mitch Oliver Sent: 04 August 2011 21:22 To: python-win32@python.org Subject: [python-win32] Calling GetText_(1) 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 Warwickshire Schools Email System This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please forward to: postmas...@we-learn.com. If the content of this email is considered to be inappropriate or offensive please report by forwarding to: reportab...@we-learn.com _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32