Re: Computer's Workgroup or Domain Name
- From: "John Timney \( MVP \)" <timneyj@xxxxxxxxxxxxx>
- Date: Mon, 10 Apr 2006 22:51:02 +0100
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
.
- Follow-Ups:
- Re: Computer's Workgroup or Domain Name
- From: Spyder
- Re: Computer's Workgroup or Domain Name
- References:
- Re: Computer's Workgroup or Domain Name
- From: John Timney \( MVP \)
- Re: Computer's Workgroup or Domain Name
- Prev by Date: Re: Open Printers Folder
- Next by Date: Re: How to switch between WLAN network and LAN network ?
- Previous by thread: Re: Computer's Workgroup or Domain Name
- Next by thread: Re: Computer's Workgroup or Domain Name
- Index(es):
Relevant Pages
|
Loading