pramod1
asked on
exchange, mailbox, powershell
I need to make sure 2 users mailbox are homed on a particular mailbox server
for ex. user1 malbox is to be homed on mbx1 server
user2 mailbox to be homed on mbx2 server
is there any powershell command I can use
for ex. user1 malbox is to be homed on mbx1 server
user2 mailbox to be homed on mbx2 server
is there any powershell command I can use
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Get-Mailbox -identity User1 | New-Moverequest -targetdatabase db2
All in [] are optional parameters
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/get-help?view=powershell-7#:~:text=To%20read%20all%20the%20PowerShell,Help%20displays%20the%20article's%20content.
ASKER
last question, thank you for above
we have some mailbox databases like db1.. db80 spread across 4 exchange servers. ( mbx1, mbx2, mbx3, mbx4)
I need to failover all the databases from mbx1 and mbx2 to mbx3 and mbx4
we are doing failover exercise.
all 4 servers are in same dag01 , same active directory site.
On mbx1 I if I use move-activemailboxdatabase - server mbx2, will it move all the databases ?
we have some mailbox databases like db1.. db80 spread across 4 exchange servers. ( mbx1, mbx2, mbx3, mbx4)
I need to failover all the databases from mbx1 and mbx2 to mbx3 and mbx4
we are doing failover exercise.
all 4 servers are in same dag01 , same active directory site.
On mbx1 I if I use move-activemailboxdatabase - server mbx2, will it move all the databases ?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
so this command if I run on mbx1, it moves all db's on mbx1 to other mbx server?
or should I put the target server instead?
or should I put the target server instead?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
so cant I run this on mbx1
Move-ActiveMailboxDatabase -ActivateOnServer MBX2 ?
Move-ActiveMailboxDatabase -ActivateOnServer MBX2 ?
ASKER
and so what happens with mailboxes homed which are on active mailbox database that will also get moved?
we want to sure mbx1 is not doing anything as we want to put that server in maint. mode during switch over
we want to sure mbx1 is not doing anything as we want to put that server in maint. mode during switch over
ASKER
so let us say if I want to move user 1 which is on db1 database on mbxserver1 and want to move
to db2 database on mbxserver2 , can you please correct below command
does it look like this
New-MoveRequest "<DescriptiveName>"] -Identity <user1> [<-ArchiveOnly | -PrimaryOnly>] [-TargetDatabase <db2>] [-ArchiveTargetDatabase<DatabaseIdentity>] [-Priority <PriorityValue>] [-BadItemLimit <Value>] [-AcceptLargeDataLoss]
is this correct command?