ADS コンテナへの次回のログイン時に、最初に割り当てられたパスワードを変更したい. プログラムでこれを行う方法は?
1 に答える
0
DirectoryEntryクラスを使用して、ActiveDirectoryのパスワードを変更できます。
DirectoryEntry directoryEntry = new DirectoryEntry(ADPath, ADUser, ADPassword, AuthenticationTypes.Secure);
directoryEntry.Invoke("ChangePassword", new object[]{strOldPassword, strNewPassword});
于 2011-12-03T01:29:37.270 に答える