The following script will resolve any wmi issues you may experiance while making calls to the cimv2 repository via vbscript, powershell, .NET or any other scripts making calls to the WMI repository (win32). This works both on servers (tested server 2008, 2003 sp2) and workstations (tested windows 7, windows xp).