Block a User from Sending Emails

Disable outbound email for a specific user. Use the Connect-ExchangeOnline function to use this code.

Set-Mailbox -Identity "user@yourdomain.com" -AccountDisabled $true