PC Review


Reply
Thread Tools Rate Thread

Computer name and Company name

 
 
ThunderMusic
Guest
Posts: n/a
 
      22nd Nov 2005
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


 
Reply With Quote
 
 
 
 
Peter Franks
Guest
Posts: n/a
 
      22nd Nov 2005
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
 
Reply With Quote
 
ThunderMusic
Guest
Posts: n/a
 
      23rd Nov 2005
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" <(E-Mail Removed)> 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



 
Reply With Quote
 
Ilya Tumanov [MS]
Guest
Posts: n/a
 
      23rd Nov 2005
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:eSV%(E-Mail Removed)...
> 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" <(E-Mail Removed)> 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

>
>



 
Reply With Quote
 
ThunderMusic
Guest
Posts: n/a
 
      23rd Nov 2005
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]" <(E-Mail Removed)> a écrit dans le message
de news: 4383b7c4$(E-Mail Removed)...
> 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:eSV%(E-Mail Removed)...
>> 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" <(E-Mail Removed)> 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

>>
>>

>
>



 
Reply With Quote
 
Vadym Stetsyak
Guest
Posts: n/a
 
      23rd Nov 2005
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:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you get the name of the Registered Company on a computer? Patrick Blackman Microsoft C# .NET 1 30th Apr 2006 11:56 AM
Computer name and Company name ThunderMusic Microsoft Dot NET 5 23rd Nov 2005 07:41 AM
Computer name and Company name ThunderMusic Microsoft VB .NET 5 23rd Nov 2005 07:41 AM
gambling site has taken over company computer =?Utf-8?B?WmFjaw==?= Windows XP Games 1 29th Jul 2004 12:32 AM
Next computer:Big company or shop built? Mike Computer Hardware 7 15th Mar 2004 04:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:23 AM.