本文介绍了向 Active Directory 用户添加地址信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!
问题描述
我正在使用 System.DirectoryServices.AccountManagement 命名空间类在 AD 中添加和管理用户,但我似乎无法找到如何向用户对象添加地址信息.我正在使用 UserPrincipal 类以编程方式将用户添加到 AD.
有什么想法吗?
解决方案
以下是使用可扩展性调用实现此目的的示例:
您可以在 MSDN 文档中找到更多信息.>
结果如下:
I'm using System.DirectoryServices.AccountManagement namespace classes to add and manage users in AD, but I can't seem to find how to add Address information to user objects. I'm using the UserPrincipal class to add users programatically to AD.
Any ideas?
解决方案
Here is a sample to do that by using extensibility call :
You'll find more information in MSDN documentation.
Here is the result :
这篇关于向 Active Directory 用户添加地址信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!
本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!