fil_b Posted October 19, 2009 Posted October 19, 2009 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
Edu-IT Posted October 19, 2009 Posted October 19, 2009 These are the instructions I have. Powershell commands to restrict maximum recipients Log on to the Exchange server and from the Start menu choose Programs, Microsoft Exchange Server 2007 and then Exchange Management Shell . 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. 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now