Fixing “(null) Library not registered” errors in Windows Script

I was debugging a WMI script on my XP machine and I couldn’t get it to run.   I kept getting the error message "(null) Library not registered".

I couldn’t find a cause for this but I fixed it with the following from a command prompt:

regsvr32 wbemdisp.dll

Scripts work now.  I mention this only because Google Groups was no help and I hit upon the fix almost by accident (I know about regsrv32 but *which* DLL…?)

The WMI Scripting Primer Part 1 (
has a good description of where WMI fits in with the scripting engine.

Take care,



Intro to the blog


I’m an IT professional, specializing in non-profits and trying to get by in gentrified Salem, Massachusetts USA.