Obtain domain of computer
i am using a sh开发者_如何学运维arepoint portal over a computer. how i can obtain domain of that computer.
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.
精彩评论