Re: Computer's Workgroup or Domain Name



I think if your not logged into a domain, you will only get the computer
name - is your dev machine in a domain?

--
Regards

John Timney
Microsoft MVP

"Spyder" <Spyder@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:534B41E2-5054-4BF5-9996-A06EA81B4A28@xxxxxxxxxxxxxxxx
The app returned the computer's name on the pc that is just part of a
workgroup.
On my dev machine, it returned the domain name.

--
Steve
Microsoft Certified Partner


"John Timney ( MVP )" wrote:

try here

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=4560&lngWId=10

--
Regards

John Timney
Microsoft MVP

"Spyder" <Spyder@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:426620BC-BB81-4F2C-A976-34FE9107342E@xxxxxxxxxxxxxxxx
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 implementation.
I have tried:
NetworkInformation.IPGlobalProperties.GetIPGlobalProperties
but it does not get the info for a 'workgroup', only a 'domain'.
I have also tried:
SystemInformation.UserDomainName
but still get nothing but the computer name if it is in a workgroup.


--
Steve
Microsoft Certified Partner





.



Relevant Pages

  • Re: Computers Workgroup or Domain Name
    ... Theres a post here from another MVP that should help you, ... Microsoft Certified Partner ... "John Timney " wrote: ... you get the Domain or Workgroup a computer belongs to. ...
    (microsoft.public.dotnet.general)
  • Re: Computers Workgroup or Domain Name
    ... Microsoft Certified Partner ... "John Timney (MVP)" wrote: ... you get the Domain or Workgroup a computer belongs to. ...
    (microsoft.public.dotnet.general)
  • Re: Computers Workgroup or Domain Name
    ... The computers I need the workgroup name from are not part of a domain. ... Microsoft Certified Partner ... "John Timney " wrote: ... On my dev machine, ...
    (microsoft.public.dotnet.general)

Loading