Re: Computer's Workgroup or Domain Name



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

  • Providing Internet Access to Computer in Workgroup
    ... I need to place these computers ... Internet using existing modem/router hardware. ... workgroup networking support. ... I know that this multihomed configuration is ...
    (microsoft.public.windowsxp.network_web)
  • Re: Wireless network issue for two SP2 computers
    ... > Connecting to Internet via Ethernet LAN Port on Intel Board ... > Second Computer ... > computers, I get the message that every gets, Workgroup not accessible. ... When I pull up view network computers, when I try to add network ...
    (microsoft.public.windowsxp.network_web)
  • Providing Internet Access to Three PCs in Workgroup
    ... I need to place these computers ... Internet using existing modem/router hardware. ... workgroup networking support. ... I know that this multihomed configuration is ...
    (microsoft.public.win2000.networking)
  • Re: No Network.........!
    ... now in my workgroup one of my machine is ... > not available although i am unable to ping, but internet is working ... have one firewall running on the troubled machine and that it is ... configured to allow the lan as trusted. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Networking XP Home possible?
    ... Neither can see themselves or each other in the workgroup. ... >Windows firewall disabled; Norton Internet Security disabled. ... The browser is a very common cause of problems like yours, ... The Microsoft Browstat program will show us what browsers (I'm not talking about ...
    (microsoft.public.windowsxp.network_web)