Member of domain
-
I would like to determine if a computer is a member of domain or not. I tried GetPDC but it seem to be returning the workgroup's name. Enumerating network is also useless, since it is returning other standalone machine's names. Any ideas about how to do this? Orcun Colak
-
I would like to determine if a computer is a member of domain or not. I tried GetPDC but it seem to be returning the workgroup's name. Enumerating network is also useless, since it is returning other standalone machine's names. Any ideas about how to do this? Orcun Colak
Use
NetWkstaGetInfo()
.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
I would like to determine if a computer is a member of domain or not. I tried GetPDC but it seem to be returning the workgroup's name. Enumerating network is also useless, since it is returning other standalone machine's names. Any ideas about how to do this? Orcun Colak
Try NetWkstaGetInfo http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/netwkstagetinfo.asp[^] and NetUserGetInfo http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/netusergetinfo.asp[^] ............................. There's nothing like the sound of incoming rifle and mortar rounds to cure the blues. No matter how down you are, you take an active and immediate interest in life.