Jump to content

Recommended Posts

Posted

Just for future reference mine wouldn't work enless i took the space out so that and also where it has servername it should be storage group (this only works on the actual server)

 

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

 

Becomes

 

Get-Mailbox -database"storage group\Students Database" | set-mailbox -recipientlimits 1

 

Toby

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.

 

Just thought i would add, glad you got this sorted sorry it was a bad post on my part i was rushing and put in the \\ and i did not mean too! sorry hehe

 

Good Work! glad it's all sorted for you though :)

 

James.

  • 11 months later...
Posted

Hi,

This has come back to bit us in the ass. I am trying to run .. "Get-Mailbox -database "\\SERVER\Storage Group\Student" | set-mailbox -recipientlimits 3"

but all I get is 'The term get-mailbox is not a recongnised cmdlet' i need to change the whole of the students to 3 recipients not 1.

And ideas?

Posted

Hi

 

Remove the \\

 

Command should be like Get-Mailbox -database "SERVERNAME\DATABASE NAME" | set-mailbox -recipientlimits 3

 

Regards

Sukh

Posted (edited)
Hi,

This has come back to bit us in the ass. I am trying to run .. "Get-Mailbox -database "\\SERVER\Storage Group\Student" | set-mailbox -recipientlimits 3"

but all I get is 'The term get-mailbox is not a recongnised cmdlet' i need to change the whole of the students to 3 recipients not 1.

And ideas?

You need to open Exchange Management Shell. You are using vanilla PowerShell.

 

Hi

 

Remove the \\

 

Command should be like Get-Mailbox -database "SERVERNAME\DATABASE NAME" | set-mailbox -recipientlimits 3

 

For clarity, everyone:

UNC paths and Exchange database canonical paths are completely separate ideas. It's not dissimilar to an AD canonical path.

 

Exch01\StorageGroup1\StudentsStore is a logical path. It implies that on a server called Exch01 there is a storage group called StorageGroup1, inside which there is a store called StudentsStore. This could well be at the physical path M:\MailboxDatabases\ChickenWings\Bobsyouruncle.edb ( (which could also be shared as \\Exch01\MailDBs\Bobsyouruncle.edb).

 

Please do not make the mistake of confusing file paths with canonical mailbox store paths, disaster will ensue.

 

I hope this has not been too abrupt, I don't mean to be rude.\

 

===

 

Edit:

 

ergo, you should do this:

1. Open Exchange Management Shell (this icon: http://fla.im/ezfBpK )

2. Run this command (replace $canonicalPathToStore with the path of your DB. I don't have Exchange 2007 handy, but I presume this can be done with Get-MailboxDatabase | fl)

Get-Mailbox -database $canonicalPathToStore | set-mailbox -recipientlimits 1

3. You can then run this command to count how many mailboxes across the organisation received the setting:

(Get-Mailbox | Where {$_.RecipientLimits -eq 1}).Count

Edited by chrisbrown

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...