We need to do a bulk password reset for a number of users in our Windows domain during a maintenance window. Using the net user command I can pretty easily change the passwords and set the user accounts to not allow the users to change their passwords:
net user testuser password /domain /passwordchg:no
The problem is that once the maintenance window is over, we need to set the user attribute "User must change password at next logon". I was hoping to do this using the net user command because it's so simple and doesn't involve any 3rd-party software. Anyone have any ideas?