You should be able to run the command from VS's command prompt (not Windows' cmd.exe one).
Anyway, here is the whole thing that I've converted to VB.Net for you. Download the attached WMIWin32.vb file below. I haven't actually tested it but if the original C# code works then there is no reason the VB.Net version of it doesn't.





Reply With Quote
