You have to use WMI for that, which is implemented via the System.Management namespace in .NET. I suggest that you do some general reading on it to begin with. Here is a C# example of what you want to do. If you understand the classes and members involved then converting it to VB should be easy.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.