Has anyone gotten WMI to work on Win2000? GetObject("WinMgmts.........

BWH bwharvey at hotmail.com
Fri Sep 28 01:20:27 CEST 2001


I've seen several messages on the group of people trying to get things
working, but I constantly get Attribute Err.

from win32com.client import GetObject

processes = GetObject("WinMgmts://127.0.0.1/root/cimv2").\
InstancesOf("Win32_process")

for process in processes:
    print process.Name

Thanks,

Brad



More information about the Python-list mailing list