473,385 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 2274
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Matt | last post by:
Hi everybody, does anyone know how to retrieve the computer name using ASP? cheers...
1
by: Kevin | last post by:
Hi all, I have a VB.NET application distributed to all employees in our company, and only one person's PC is having problems with it. After a restart of her computer, the next time she runs my...
6
by: Gawel | last post by:
Hajo, I am searching solution for this proble over 2 days. I need to be able to create mailboxes on exchange server that is in domain. I need to do it outside of domain. What is more I can...
5
by: ThunderMusic | last post by:
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...
12
by: dennist685 | last post by:
How to get an Access database on the web from my own computer I have an Access database project in inetpub/wwwroot/Access2 . I build it, and then press cntrl-F5. - I still get the development...
1
by: Patrick Blackman | last post by:
How do you get the name of the Registered Company on a computer? Any ideas would be appreciated.
4
by: chu2ch | last post by:
Good Afternoon Folks, Im kinda in a pickle. I have created a .net 2.0 dll written in vb.net that needs to reside in a folder on a networked computer ( for compatibility with another program)....
1
maxamis4
by: maxamis4 | last post by:
Hello folks, Here is the backgroup. I am creating an agent that can find a user in LDAP and return the last logon date. Now i am not sure if with active directory you can user the...
2
by: mitja | last post by:
Hi, I have read a lot of posts on the web and got no answer. Is there any chance of geting any unique client identification data (his IP-but not proxy IP or router or NAT, his username, his...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.