Can not use wmi framework in web module #144

Steely opened this Issue Mar 12, 2012 · 0 comments


None yet
1 participant

Steely commented Mar 12, 2012

Dear ALL
i have a wmi project code simple like this, this code is try to use wmi framework accept windows servwer 2008 hyper-v virtual machines.
_vConn = wmi.WMI(moniker='//./root/virtualization')
when i use dos command : python it is work fine
but when i use and try to get Msvm_ComputerSystem() obj will get a exception link this
File "D:\Python25\Lib\site-packages\", line 1147, in getattr
return getattr (self._namespace, attribute)
File "D:\Python25\Lib\site-packages\win32com\client\", line 516, in
raise AttributeError("%s.%s" % (self.username, attr))
AttributeError: winmgmts://./root/virtualization.Msvm_ComputerSystem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment