powpy Play with Windows Management Instrumentation in python and replace your creepy PowerShell ;) http://www.handgrep.se/projects/powpy/doc