473,566 Members | 2,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem determining domain/workgroup name

On my development machine, it works -- SystemInformati on.UserDomainNa me and
System.Environm ent.UserDomainN ame both returns the domain name. But, on my
test machine, these methods are returning the computer name.

Both systems are running Framework 1.1 w/SP 1 installed. The code was
compiled using VS 2003 (VB.NET).

Is the problem that the test machine belongs to a workgroup, and not a
domain? If so, how to determine the workgroup name?

Richard Rosenheim
Nov 21 '05 #1
2 1644
In code or on the machine?

On the machine:

Right-click my computer, click properties & then the network identification
tab

"Richard L Rosenheim" wrote:
On my development machine, it works -- SystemInformati on.UserDomainNa me and
System.Environm ent.UserDomainN ame both returns the domain name. But, on my
test machine, these methods are returning the computer name.

Both systems are running Framework 1.1 w/SP 1 installed. The code was
compiled using VS 2003 (VB.NET).

Is the problem that the test machine belongs to a workgroup, and not a
domain? If so, how to determine the workgroup name?

Richard Rosenheim

Nov 21 '05 #2
In code.
"Crouchie19 98" <Cr**********@d iscussions.micr osoft.com> wrote in message
news:1D******** *************** ***********@mic rosoft.com...
In code or on the machine?

On the machine:

Right-click my computer, click properties & then the network identification tab

"Richard L Rosenheim" wrote:
On my development machine, it works -- SystemInformati on.UserDomainNa me and System.Environm ent.UserDomainN ame both returns the domain name. But, on my test machine, these methods are returning the computer name.

Both systems are running Framework 1.1 w/SP 1 installed. The code was
compiled using VS 2003 (VB.NET).

Is the problem that the test machine belongs to a workgroup, and not a
domain? If so, how to determine the workgroup name?

Richard Rosenheim

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1318
by: robert | last post by:
How do I get a remote XP Pro computer user on one domain to access and run a ..NET application on a different domain? Scenario: I was given a .NET application on domain (B) that I need to allow a remote XP PRO computer user to run from the other domain (A). The only way I have been able to get the application to run remotely is by having the...
1
1878
by: Tim Marshall | last post by:
I hope someone can help me with an extrodinarily vexing problem. I've searched Google high and wide and tried a number of methods for determining if the current user is part of a specified group in A97. I can find nothing in the otherwise excellent help files, except examples of how to add users and specify what groups they are part of and...
1
1511
by: Manoj | last post by:
Hi, How can we get info as to if a terminal is on a workgroup or a domain and the name of the domain\workgroup in windows 2000 professional through code thanks in advance Manoj
11
5581
by: Mark Hollander | last post by:
How do I get the name of the Workgroup or Domain that the computer has been registered in. Thank you Mark Hollander
1
4086
by: Bilge TUTAK | last post by:
Hi, I want to find the list of the computer names in a workgroup or in a domain. Is there a way to do this in VB.NET? Thanx
3
2766
by: Joe User | last post by:
Hi - I found the class below on another website (www.devx.com) and can't seem to figure out how to make a call to this class to retrieve the machines and put them in a listbox. I am definitely a beginner in vb programming, and would really appreciate the help. TIA!
6
7665
by: Spyder | last post by:
When you go to "MyComputer" and get properties and select "Computer Name", you get the Domain or Workgroup a computer belongs to. I have looked thru MSDN library, the Internet, the Registry and in all files on my computer and cannot find how to retrieve this information in VB.Net 2005. This information is essential for our system...
8
36986
by: None | last post by:
Hi, If anybody knows how to get the domain name(only domain name) of the system pls let me know. Thanks and Regards, Vinothkumar B bvinoth@tvsinfotech.com
9
1604
by: =?Utf-8?B?RGVubmlz?= | last post by:
I am trying to get all the user info in my home network domain using WMI but the below code returns nothing. I know the domain name I pass is correct, i.e., "mshome". I cut and pasted this code from an example I found on the internet. Public Shared Function GetUsersInfoCollection(ByVal domain As String) As ManagementObjectCollection Dim...
0
7666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8108
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7644
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2083
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.