WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

WMI
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Check if WMI is Installed


Question:

On some PC's there's no WMI installed. Is there any way how can I try if the WMI is installed?

Answer:

You can trap the error if WMI is not installed, like this:
ErrorMode(@off)
Locator = ObjectOpen("WbemScripting.SWbemLocator")
ErrorMode(@cancel)
if Locator == 0
	Message("Error","WMI Not Installed!")
	exit
endif

Article ID:   W16269
File Created: 2004:03:30:15:43:42
Last Updated: 2004:03:30:15:43:42