获取组的域名 [英] Get the Domain Name of Group

查看:47
本文介绍了获取组的域名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Directory Services AD工具,是否可以获取组负责人的域名?

With the Directory Services AD Tools, is there a way to get the Domain Name of a Group Principal?

推荐答案

鲍勃·约翰斯顿,

Hi Bob F Johnston,

谢谢您在这里发布.

对于您的问题,如果您在域中,则可以获取域名.如果您不在此域中,为了安全起见,您将无法获取域名.您可以通过域名获取AD中的所有成员组.在C#中,您可以获得域名 也是直接.

For your question, if you are in the domain, you could get the domain name. If you are not in this domain, for security, you could not get the domain name. You could get the all the members groups in AD via domain name. In C#, you could get the domain name directly as well.

您可以尝试下面的代码.我认为这样会更容易.

You could try following code. I think that would be easier.

string domainName = IPGlobalProperties.GetIPGlobalProperties().DomainName;

我希望这会对您有所帮助.

I hope this would be helpful to you.

如果还有其他问题,请随时与我们联系.

If you have something else, please feel free to contact us.

最好的问候,

温迪


这篇关于获取组的域名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆