views:

32

answers:

1

hi, i am using a sharepoint portal over a computer. how i can obtain domain of that computer.

A: 

You can write your own WebPart and that WebPart can utilize System.DirectoryServices.ActiveDirectory.Domain with code that looks like -

Domain domain = Domain.GetCurrentDomain();
output.write( domain.Name );

Something like that should work.

hagrin