Fixing “(null) Library not registered” errors in Windows Script
Posted: May 21, 2005 Filed under: Computers and Internet Leave a commentI 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 (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnclinic/html/scripting06112002.asp)
has a good description of where WMI fits in with the scripting engine.
Take care,
Dave