The command shown in Example 1 uninstalls the user database from the SQL Server instance RTC on the computer .īecause the DropExistingDatabaseOnMirror parameter was included, the command will also delete the actual User database mirror. Examples - Example 1 - Uninstall-CsMirrorDatabase -SqlServerFqdn "" -SqlInstanceName "RTC" -DatabaseType "User" -DropExistingDatabasesOnMirror
Skype for Business Server Control Panel: The functions carried out by the Uninstall-CsMirrorDatabase cmdlet are not available in the Skype for Business Server Control Panel. If you ever need to remove a mirror database, you can do so by using the Uninstall-CsMirrorDatabase cmdlet. Mirror databases can be installed and configured by using the Install-CsMirrorDatabase cmdlet. This provides the ability to instantly replace Database A should that database become unavailable: you can "failover" to the mirror database with minimal disruption to your users and with minimal data loss. Mirror databases enable you to simultaneously maintain two copies of a database: when data is written to Database A, a copy of that data is also written to its mirror database. In this article Syntax Uninstall-Cs Mirror Database This cmdlet was introduced in Lync Server 2013. The logic behind the script is the following: Script need the pool FQDN as parameter. The script is available for both Skype for Business and Lync 2013.
Uninstalls a Skype for Business Server mirror database.Ī database mirror enables you to simultaneously maintain two copies of a database, each copy residing on a different server. To limit the tasks that the engineer has to execute and avoid human mistake, I created a script to restart the pool in an automated way.