I’m working on an application which scans a given networkrange for computers. From the found clients I need to get the IP, hostname, Mac address, OS Information etc.
Now, I have all of the above, except the OS version. Does anyone have a clue on how I could achieve this?
I’m stuck.
Thanks in advance, Christophe
Use WMI, add reference to – System.Management dll and provide namespace, use following code with appropriate parameters-
You must have access right to steal this info else you will get Access right exception.