Hi guys.
Having issues if I create powershell script that I would need to put some "timeouts inside".
Script contains:
add-mailboxdatabasecopy "database-name" –mailboxServer "exchange2013FQDN" –seedingPostponed:$TRUE
Suspend-MailboxDatabaseCopy -Identity "database-name\EXCHANGE2013" –ActivationOnly
set-mailboxdatabase "database-name" –circularLogging:$TRUE
Dismount-Database -Identity "database-name" –confirm:$false
Mount-Database -Identity "database-name" –confirm:$false
update-mailboxdatabasecopy "database-name\exchange2013FQDN" –deleteExistingFiles:$TRUE –confirm:$false
set-mailboxdatabase "database-name" –circularLogging:$FALSE
Dismount-Database -Identity "database-name" –confirm:$false
Mount-Database -Identity "database-name" –confirm:$false
But i recieve an error:
The seeding operation failed. Error: An error occurred while running prerequisite checks. Error: Replication for databa
se 'DATABASE-name' is not suspended. You must suspend replication before seeding. Use the Suspend-MailboxDatabaseCopy cmdlet t
o suspend replication for the database.
I Guess that between lines:
add-mailboxdatabasecopy "database-name" –mailboxServer "exchange2013FQDN" –seedingPostponed:$TRUE
Suspend-MailboxDatabaseCopy -Identity "database-name\EXCHANGE2013" –ActivationOnly
I should put some "hold", "timeout"... how to achieve that?
bostjanc