windows and wmi bugfixes