I am trying to change a computer name and join to a domain. I found a lot of articles on how do to it but I am not sure how to actually make the change. I referenced the system.management namespace and I have been missing around with code similar to this link: http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Studio_.NET_2005/Q_23027024.html
. Not really sure how to get it to work. Where do i insert the new computer name and domain?