Jump to content

Recommended Posts

Posted

Hi All

 

When we have added our year 7 to exchange server, it has not set the max recipients in there propperties

 

The attached image shows how many we want. How is it possible to set a number of users with a maximum number. I cant find an option to do this

 

http://i7.photobucket.com/albums/y277/fil_b/MaxRecipients.jpg

 

Thanks

 

Phil

Posted

These are the instructions I have.

 

Powershell commands to restrict maximum recipients

 

  1. Log on to the Exchange server and from the Start menu choose Programs, Microsoft Exchange Server 2007 and then Exchange Management Shell .
  2. Now type the following two lines (based on the information below):
    $group = Get-Group 'XYZ'
    $group.Members | get-mailbox | set-mailbox -recipientlimits 10
     
    This will find all users that are a member of the XYZ group and who have an Exchange mailbox, then sets the Maximum Recipient limit to ten. Obviously, you can change the name of the group and number of maximum recipients to suit.
  3. You can then automate this by using Scheduled Task on the Exchange server to run a command as follows:
    C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -PSConsoleFile "C:\Program Files\Microsoft Exchange Server\bin\exshell.psc1" -command ". 'C:\PS1files\XYZMaxLimit.ps1'"
     
    The last part refers to the path and file name of a *.ps1 file which would contain the two command shell lines from above. With this scheduled via Scheduled Tasks, it will run regularly to reset the value against new mailbox users who become members of the XYZ group, when new users/mailboxes are created.

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...