var data = new DirectoryEntry("LDAP://xxx.xxx", LdapAdUserName, LdapAdPassword);
data.data.Properties["LockoutThreshold"].Value = 10;`
data.data.Properties["maxPwdAge"].Value = 90;
data.CommitChanges();
我正在尝试更改 AD 上的域密码策略。首先,我尝试更新“LockoutThreshold”=> OK 第二,我尝试更新“maxPwdAge”=> 提交时出现异常
例外:
An exception of type 'System.DirectoryServices.DirectoryServicesCOMException' occurred in System.DirectoryServices.dll but was not handled in user code
为什么不能设置“maxPwdAge”??