GetWMIServices? Will it work?



Hi,
I am using GetWMIServices to check if a USB hardware is connected to
the System.

e.g.

objWMIService.ExecQuery("Select * from Win32_PnPEntity")

I get the Items and look if the USB Hardware is connected.

It works on Windows XP/2000, But fails to work in XP Embedded.

Can any one suggest a workaround/alternatives.

Thanks in Advance.

.