[python-win32] How to get a proxy instance of a WMI object.

Tim Golden mail at timgolden.me.uk
Wed Jun 22 15:19:02 CEST 2011


On 21/06/2011 21:57, M Saunders TAS wrote:
> python scsi_add_short.py
> Traceback (most recent call last):
>    File "scsi_add_short.py", line 15, in<module>
>      HD.Address = "100"
>    File "c:\python27\lib\site-packages\wmi.py", line 571, in __setattr__
>      handle_com_error ()
>    File "c:\python27\lib\site-packages\wmi.py", line 241, in handle_com_error
>      raise klass (com_error=err)
> wmi.x_wmi:<x_wmi: Unexpected COM Error (-2147352567, 'Exception occurred.', (0,
>   u'SWbemObjectEx', u'Provider is not capable of the attempted operation ', None,
>   0, -2147217372), None)>

Thanks for posting. Nothing's jumping out at me I'm afraid.
If you were serious about giving me access to Hyper-V I'm
happy to try to poke at it at a distance if you wanted to
contact me off-list.

TJG


More information about the python-win32 mailing list