469,643 Members | 1,514 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,643 developers. It's quick & easy.

Computer name and Company name

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
Nov 23 '05 #1
5 2115
ThunderMusic wrote:
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
Nov 23 '05 #2
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

"Peter Franks" <no**@none.com> a écrit dans le message de news:
h1Ogf.17715$qw.16572@fed1read07...
ThunderMusic wrote:
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

Nov 23 '05 #3
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/...ramework?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).

"ThunderMusic" <NO.danlat.at.hotmail.com.SPAM> wrote in message
news:eS****************@TK2MSFTNGP11.phx.gbl...
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

"Peter Franks" <no**@none.com> a écrit dans le message de news:
h1Ogf.17715$qw.16572@fed1read07...
ThunderMusic wrote:
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


Nov 23 '05 #4
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

"Ilya Tumanov [MS]" <il*****@online.microsoft.com> a écrit dans le message
de news: 43********@news.microsoft.com...
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/...ramework?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).

"ThunderMusic" <NO.danlat.at.hotmail.com.SPAM> wrote in message
news:eS****************@TK2MSFTNGP11.phx.gbl...
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

"Peter Franks" <no**@none.com> a écrit dans le message de news:
h1Ogf.17715$qw.16572@fed1read07...
ThunderMusic wrote:
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



Nov 23 '05 #5
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.

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com
"ThunderMusic" <NO.danlat.at.hotmail.com.SPAM> wrote in message
news:uO**************@TK2MSFTNGP10.phx.gbl...
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

Nov 23 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Matt | last post: by
6 posts views Thread by Gawel | last post: by
5 posts views Thread by ThunderMusic | last post: by
2 posts views Thread by mitja | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.