tim golden cggctimgoldenmeuk markabrand wrote hi incorporate clause selected field clause wmi query gets caption state fields services c wmiwmi service cwin32_service caption state gets fields stopped services c wmiwmi service cwin32_service state stopped way incorporate queries one something like c wmiwmi service cwin32_service caption state state stopped well answer couple ways 1 always pass raw wql namespace result calling wmiwmi case c import wmi c wmiwmi q select caption win32_service state stopped service cquery q print servicecaption 2 youd really need something sophisticated clause normally youd write like import wmi c wmiwmi service cwin32_service caption statestopped print servicecaption even slight optimisation usually costs little pull back fields generally write import wmi c wmiwmi service cwin32_service statestopped print ccaption cstatus tjg _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 wed 06 aug 2008 222418 0000 pythonwin32 wmi query