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」を設定できないのはなぜですか??