Jump to content

Recommended Posts

Posted (edited)
We need to know how to create a policy that will only apply to students. Does anyone know to do this in exchange 2007? Edited by EduTech
edited title to be more appropriate
Posted (edited)

Do you have a separate database for student users? If so run this command in powershell:

 

Get-Mailbox -database "Servername\Storage Group\database" | set-mailbox -recipientlimits 1

Edited by clareq
corrected no of recipients
  • Thanks 1
Posted

You have to run the command in powershell, just paste that into powershell and edit the servername\database name and press enter :)

 

-- Only going to be okay though if you HAVE seperate databases for students.

 

If you have everyone in the same database, then it's going to need a more "filtered" command.

Posted

Hi,

 

all of the data is stored into different databases.

 

If we run the command in powerhell like: \\server\database will it find it?

 

My command would look similar to this:

Get-Mailbox -database "F:\ExchangeSrv1\Storage Group\Staff.[extension]" | set-mailbox -recipientlimits 1

 

would my command work??

 

Thanks

Stuart (on behalf of BadBoy)

Posted
I've always found ADModify good for this sort of stuff:

 

Introduction to ADModify.net

 

Exchange 2007/10 does not integrate itself into AD like 2000/03 did and therefore that would not work the same.

 

The command in which you said i do not understand the staff.[EXTENSION] bit, are you saying that all your student/staff mailboxes are in the same database?

 

James.

Posted
Exchange 2007/10 does not integrate itself into AD like 2000/03 did and therefore that would not work the same.

James.

 

You are quite right, helps if I read things properly!

Posted
You are quite right, helps if I read things properly!

 

Yeah, sorry i hate correcting people as i am just as bad at times.. but it's all good :) never know might help out someone who still uses 2003 etc :)

 

I hate having to use the Exchange Managment Console all the time anyway! hence i have it installed on my PC now save keep going into an RDP Session.

 

James.

Posted

Hi

 

All the Databases are Split [staff | Student | Admin].

 

The Staff.[extension] is just me forgetting the extension of the DB :)

 

Thanks

- Stuart

Posted
Hi

 

All the Databases are Split [staff | Student | Admin].

 

The Staff.[extension] is just me forgetting the extension of the DB :)

 

Thanks

- Stuart

 

Oh okay in which case all you need is

 

Get-Mailbox -database "\\ExchangeSrv1\Storage Group\Student" | set-mailbox -recipientlimits 1

 

*dont think you need the extention to be honest

 

James.

  • Thanks 1
Posted
Oh okay in which case all you need is

 

Get-Mailbox -database "\\ExchangeSrv1\Storage Group\Student" | set-mailbox -recipientlimits 1

 

*dont think you need the extention to be honest

 

James.

 

James - Thanks, will implement next Tuesday when we are open and let you know if it worked!

 

Cheers Guys

Stuart (On behalf of BadBoy1984)

Posted
BTW - If if type \\Exchangesr1\ I dont see storage groups, is that correct?

 

Yeah correct,

 

and make sure you use the Exchange PowerShell for the commands, it will only work in that (just incase).

 

James.

Posted
You also don't need the \\ Just the server name and database name.

 

Yeah! Cheers clare for pointing that one out didn't clock it... urrgg i need coffee! lol long day :doh:

Posted
Easily done - you get so used to using UNC paths, it looks wrong when they're not there!

 

Very True :) PowerScripts are nice when you have picked up the language make the administration of Exchange much easier! :) lol

 

--

 

Let us know how you get on though, if it dont work or you need further help just ask :) it can be a nightmare at times ;)

 

James.

Posted

This is all i get!!!

 

Using this command

Get-Mailbox -database "\\DRA-EXCH\Storage Group\Students Database.edb" | set-mailbox -recipientlimits 1

 

Result

Cannot bind to Database.

Posted (edited)
This is all i get!!!

 

Using this command

Get-Mailbox -database "\\DRA-EXCH\Storage Group\Students Database.edb" | set-mailbox -recipientlimits 1

 

Result

Cannot bind to Database.

 

 

you need to change it so that it doesn't have \\ so that

Get-Mailbox -database "\\DRA-EXCH\Storage Group\Students Database.edb" | set-mailbox -recipientlimits 1

 

Becomes

Get-Mailbox -database "DRA-EXCH\Storage Group\Students Database.edb" | set-mailbox -recipientlimits 1

 

I think (am guessing DRA-EXCH is your exchange server name)

 

Toby

Edited by glennda
typo
  • Thanks 1
Posted

I don't think you need the .edb either - my example up there works - adapting it to your server would give

Get-Mailbox -database "DRA-EXCH\Students Database" | set-mailbox -recipientlimits 1

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



  • 12 When would you like EduGeek EDIT 2025 to be held?

    1. 1. Select a time period you can attend


      • I can make it in June\July
      • I can make it in August\Sept
      • Other time period. Please comment in the thread what works for you
      • Either time

×
×
  • Create New...