Try following the steps suggested in this thread
It could be the same issue with wmic.
Anyhow, @frank can better help