Find users who cannot change their password
问题 I am trying to prepare report of users who cannot change their password in AD. AD is installed on Window Server 2012. Here is the method, which I thought to work but isn't working - /// <summary> /// Check whether password of user cannot be changed. /// </summary> /// <param name="user">The DirectoryEntry object of user.</param> /// <returns>Return true if password cannot be changed else false.</returns> public static bool IsPasswordCannotBeChanged(DirectoryEntry user) { if (user.Properties