Well I change the path so Windows searches in the local path and a network path for drivers. Mainly because alot of drivers are not installed from windows itself.

Back to the remove hardware part, I've found that $objItem.Uninstall works for installed programs but not for hardware devices in the device manager, but there must be a similar command.