Please search for WMI and Scriptomatic and you should find an answer.