import wmi conn = wmi.WMI("IP address", user="User", password="Passworsd") import os for dirpath, dirname, filenames in os.walk(\'\'):