badboy1984 Posted April 1, 2010 Posted April 1, 2010 (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 April 1, 2010 by EduTech edited title to be more appropriate
danrhodes Posted April 1, 2010 Posted April 1, 2010 What kind of policy do you mean, can you elaborate a little further as to what you wish to accomplish? D
badboy1984 Posted April 1, 2010 Author Posted April 1, 2010 the end goal is to change the receipian limit to one for all students.
clareq Posted April 1, 2010 Posted April 1, 2010 (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 April 1, 2010 by clareq corrected no of recipients 1
badboy1984 Posted April 1, 2010 Author Posted April 1, 2010 can the script run looking at the database like "C:\data\" or does it have to run it like "//servername/"?
clareq Posted April 1, 2010 Posted April 1, 2010 In my case the command is Get-Mailbox –Database “dstc-ex-001\Students Database” | set-mailbox -recipientlimits 1
EduTech Posted April 1, 2010 Posted April 1, 2010 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.
01hanstu Posted April 1, 2010 Posted April 1, 2010 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)
bodminman Posted April 1, 2010 Posted April 1, 2010 I've always found ADModify good for this sort of stuff: Introduction to ADModify.net
EduTech Posted April 1, 2010 Posted April 1, 2010 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.
bodminman Posted April 1, 2010 Posted April 1, 2010 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!
EduTech Posted April 1, 2010 Posted April 1, 2010 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.
01hanstu Posted April 1, 2010 Posted April 1, 2010 Hi All the Databases are Split [staff | Student | Admin]. The Staff.[extension] is just me forgetting the extension of the DB Thanks - Stuart
EduTech Posted April 1, 2010 Posted April 1, 2010 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. 1
01hanstu Posted April 1, 2010 Posted April 1, 2010 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)
01hanstu Posted April 1, 2010 Posted April 1, 2010 BTW - If if type \\Exchangesr1\ I dont see storage groups, is that correct?
EduTech Posted April 1, 2010 Posted April 1, 2010 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.
clareq Posted April 1, 2010 Posted April 1, 2010 You also don't need the \\ Just the server name and database name.
EduTech Posted April 1, 2010 Posted April 1, 2010 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
clareq Posted April 1, 2010 Posted April 1, 2010 Easily done - you get so used to using UNC paths, it looks wrong when they're not there!
EduTech Posted April 1, 2010 Posted April 1, 2010 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.
01hanstu Posted April 6, 2010 Posted April 6, 2010 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.
glennda Posted April 6, 2010 Posted April 6, 2010 (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 April 6, 2010 by glennda typo 1
clareq Posted April 6, 2010 Posted April 6, 2010 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
01hanstu Posted April 6, 2010 Posted April 6, 2010 Hi Guys, Thanks once again for the support - it works. Cheers - Stuart
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