Yes, you missed a trick, but fortunately it is a really easy one. You just need to add a reference to the System.Management component.
You probably know how to add a reference, but just in case, here are the detailed directions for adding the reference you need from within the IDE.
1) Right...