解锁域账号[C#]
时间:2011-03-10 来源:Jaeho
DirectoryEntry directoryEntry = new DirectoryEntry(
"LDAP://cn=...,dc=...",
"uid",
"pwd",
AuthenticationTypes.Secure);
Object obj = directoryEntry.NativeObject;
Type t = obj.GetType();
t.InvokeMember(
"IsAccountLocked",
BindingFlags.SetProperty,
null,
obj,
new Object[] { "false" });
directoryEntry.CommitChanges(); 相关阅读 更多 +
排行榜 更多 +










