请问各位大侠,
C#能否对于AD中的计算机的安全里添加组或成员?
能的话给个方法吧?谢谢!
C#能否对于AD中的计算机的安全里添加组或成员?
能的话给个方法吧?谢谢!
解决方案 »
- 求怎么隐藏TabControl控件的标签子页(我要实现的是想浏览器一样,而不是全部都隐藏起来。)
- 有一个结构集合,如何快速的找到需要的结构?
- c# 如何打开本机上的文件
- 用户配置数据源后,如何为其提供一个选择该数据库中表的界面?
- 如果判定一个对象是否等于这个类型??
- 虚函数调用的问题
- 关于Pocket PC,菜鸟问题!!!!!
- WCF报的奇芭错误
- 请问用C#能不能即时监控单个文件的读写速度 谢谢
- 服务端线程定时调用BeginSend,间隔2S,客户端能收到,小于则收不到
- 100分!C#+UDP通信的,提示“远程主机强迫关闭了一个现有的连接”
- 请问 linq 怎么动态查询多个 select、group 或 orderby?
// wish to add the new group to.
DirectoryEntry ou = dom.Children.Find("OU=Consulting");// Add the new group Practice Managers.
DirectoryEntry group = ou.Children.Add("CN=Practice Managers", "group");// Set the samAccountName for the new group.
group.Properties["samAccountName"].Value = "pracmans";// Commit the new group to the directory.
group.CommitChanges();
group.Properties["member"].Add(userDN);// Commit the changes to the group.
group.CommitChanges();
[groupname [/COMMENT:"text"]] [/DOMAIN]
groupname {/ADD [/COMMENT:"text"] | /DELETE} [/DOMAIN]
groupname username [...] {/ADD | /DELETE} [/DOMAIN]
process.start