Block a User from Sending Emails

Block a User from Sending Emails

Powershell Scripts Scripts Basic 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...
Block a User from Sending Emails

Assign a Full Access Permission

Powershell Scripts Scripts Basic Assign a Full Access Permission Grant another user full access to a specific mailbox. Use the Connect-ExchangeOnline function to use this code. Add-MailboxPermission -Identity “user@yourdomain.com” -User...
Block a User from Sending Emails

Create a New Shared Mailbox

Powershell Scripts Scripts Basic Create a New Shared Mailbox Get mailbox statistics and export them to a CSV file. Use the Connect-ExchangeOnline function to use this code. New-Mailbox -Shared -Name “Support” -DisplayName “Support Team”...
Block a User from Sending Emails

Export Mailbox Statistics

Powershell Scripts Scripts MS365 Exchange Online Export Mailbox Statistics Get mailbox statistics and export them to a CSV file. Use the Connect-ExchangeOnline function to use this code. Get-Mailbox -RecipientTypeDetails UserMailbox | ForEach-Object {...
Block a User from Sending Emails

List All Mailboxes

Powershell Scripts Scripts MS365 Exchange Online List All Mailboxes Retrieve a list of all mailboxes in your tenant. Use the Connect-ExchangeOnline function to use this code. Get-Mailbox -RecipientTypeDetails UserMailbox | Select-Object DisplayName,...