473,498 Members | 1,776 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem determining domain/workgroup name

On my development machine, it works -- SystemInformation.UserDomainName and
System.Environment.UserDomainName 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 1634
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 -- SystemInformation.UserDomainName and
System.Environment.UserDomainName 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.
"Crouchie1998" <Cr**********@discussions.microsoft.com> wrote in message
news:1D**********************************@microsof t.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 -- SystemInformation.UserDomainName and System.Environment.UserDomainName 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
1308
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...
1
1871
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...
1
1504
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
5572
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
4058
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
2764
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...
6
7647
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...
8
36977
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
1601
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...
0
7125
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
7004
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
7208
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...
1
6890
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...
1
4915
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4593
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3095
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...
1
657
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
292
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...

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.