Remove All Users Mailbox Size Restriction Using PowerShell Exchange Server 2016

Two days ago I showed how to set a preferred DNS Server on Exchange 2016 and today I’ll show you how To remove mailbox size limit restriction from all mailboxes and set them with unlimited storage size.

The cmdlet below will show you all the users with unlimited mailbox size limit:

get-mailbox | select name, max* | where{$_.maxsendsize -ne 'unlimited'} | ft

 

The cmdlet below will remove size limit restriction and set unlimited limit on all mailboxes.

get-mailbox -resultsize unlimited | set-mailbox -MaxReceiveSize unlimited -MaxSendSize unlimited