1. Add using System.Management to your code
2. Add a Reference of System.Management to your project.
1. right click on your project or solution and click add referecne
2. from the .Net libraries select the System.Management.
3. Done
2. Add a Reference of System.Management to your project.
1. right click on your project or solution and click add referecne
2. from the .Net libraries select the System.Management.
3. Done