The InstallNCache and UnInstallNCache scripts internally uses methods of Win32_Product class. If you got any error related to this class during script execution, it means that Win32_Product class is not installed on that machine.
On Windows 2003 the Win32_Product class some times isn't installed by default. You can install it with Add/Remove Windows Component.
Steps for Installing Win32_Product class :
Step 1:
Go to Add/Remove Windows Components.
Step 2:
Look for the "Management and Monitoring Tools". If it is uncheck, make it checked. Click on Details Button.
Step 3:
Look for the "WMI Windows Installer Provider". Make it checked. Click OK.
See Also