I want to get the information about the the machine configuration i.e like ip address of the machine
you may use Dns for ip/host information and Environment for generic system information (os, version)
For general machine information, you'll want to use WMI. It is supported by the classes in the System.Management namespace, in particular the ManagementQuery class.
The best way to get started on this is the WmiCodeCreator utility. It lets you discover what WMI classes are available on the machine and run queries. Best of all, it auto-generates the C# code you need, ready to cut-and-paste into your program. Strongly recommended.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With