200分请教C#编程如何在Windows XP + .net 中 添加|删除|更改|用户?

lkal4587 2003-08-10 10:54:01
200分请教C#编程如何在Windows XP + .net 中 添加|删除|更改|用户?

包括用户名 密码 图片 权限
...全文
34 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
test234 2003-12-18
  • 打赏
  • 举报
回复
up
babysgaler 2003-11-05
  • 打赏
  • 举报
回复
up
lkal4587 2003-11-05
  • 打赏
  • 举报
回复
up
Tadpole0510 2003-11-05
  • 打赏
  • 举报
回复
我不会,我支持一下
甴曱 2003-08-11
  • 打赏
  • 举报
回复
you look:
http://www.c-sharpcorner.com/Code/2003/April/ListingADUsers.asp
雪狼1234567 2003-08-11
  • 打赏
  • 举报
回复
http://www.c-sharpcorner.com/Code/2002/Aug/AddContactsToAD.asp
lkal4587 2003-08-11
  • 打赏
  • 举报
回复
UP
panyee 2003-08-10
  • 打赏
  • 举报
回复
private void AddUser(string strDoamin, string strLogin, string strPwd)
{
DirectoryEntry obDirEntry = null;
try
{
obDirEntry = new DirectoryEntry("WinNT://" + strDoamin);
DirectoryEntries entries = obDirEntry.Children;
DirectoryEntry obUser = entries.Add(strLogin, "User");
obUser.Properties["FullName"].Add("Amigo");
object obRet = obUser.Invoke("SetPassword", strPwd);
obUser.CommitChanges();
}
catch (Exception ex)
{
Trace.Warn(ex.Message);
}
}
孟子E章 2003-08-10
  • 打赏
  • 举报
回复
http://www.c-sharpcorner.com/DirectoryServices.asp

110,538

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧