Scheduling a task from command line

Very useful one-liner.  Run from CMD, rather than PS:

Schedule once:

Schedule daily:

 

List users with UPN’s that don’t match their email address.

List users with UPN’s that don’t match their email address.

Consistency saves confusion when performing migrations, ADFS password resets, logging in to O365, etc.