Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am doing project on remote system information
how to connect to the remote computer in workgroup and gather information like hardware and software such as operating-system etc by using the wmi in c#?
Posted

1 solution

Here is an article to get you started:
http://www.terminally-incoherent.com/blog/2010/02/18/collecting-hardware-information-using-c-and-wmi/[^]

However, there aren't a lot of full applications already out there to do an inventory using C#. The reason for this is because the typical way of doing an inventory is through VBScript or, more recently, Powershell. I'm not sure of your requirements, but I would look at doing the inventory using a pre-built script and then saving the information to a CSV file. Then you could read it using C#. However, if you want to build something, the above article will give you what you need. The last piece will be authentication. I believe you will need a login on each machine since they are in a workgroup. Then you will use this login to authenticate you on that remote machine.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900