您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

使用C#操作WindowAD之的Windows用户组

2025/5/17 11:45:26发布18次查看
public void createwindowsgroup(string groupname, string groupdesc, int groupctl) { string ladprootpath = "ldap://192.168.213.168/cn=users,dc=pk1,dc=cctv,dc=com"; directoryentry ladproot = new directoryentry(ladprootpath); ladproot.username = "xxxxx"; ladproot.password = "xxxxx"; directoryentry group = ladproot.children.add("cn=" + groupname, "group"); group.properties["samaccountname"].value = groupname; group.properties["description"].value = groupdesc; group.properties["grouptype"].value = groupctl; group.commitchanges(); group.close(); }
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product