You just need to add System.Management.dll reference. Right click on the Reference in the Solutions Explorer and click on Add Reference...