Computer name and Company name

T

ThunderMusic

Hi,
I want to find the computer name and the company name from the network
indentification informations.

For the computer name, I found System.Net.Dns.GetHostName(), but I fgound
nothing for the company name.

Can someone help me plz?

Thanks
 
P

Peter Franks

ThunderMusic said:
Hi,
I want to find the computer name and the company name from the network
indentification informations.

For the computer name, I found System.Net.Dns.GetHostName(), but I fgound
nothing for the company name.

Computer name: System.Environment.MachineName
 
T

ThunderMusic

thanks for the computer name, now, what about the company name, I looked
around the machine name and environment namespace, but found nothing. I'm
still searching, but if someone has the answer, I'd love to have it... ;)

thanks
 
I

Ilya Tumanov [MS]

If you mean the company particular copy of Windows is registered to, it can
be found in registry:



HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\RegisteredOrganization



Of course, that would only work if this information is set correctly. PC
can't figure out which company it belongs to on its own.



Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
T

ThunderMusic

ok, excellent, I'll take this one for now. It should be ok, for the moment.
(I guess it's the one I have to use anyways.)

Thanks a lot.

ThunderMusic
 
V

Vadym Stetsyak

You can also use Active Directory information of the login of that machine.
Or your own login.

System.DirectoryServices.DirectoryEntry can be used for this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top