Edit

Share via


Uninstall-CsMirrorDatabase

Uninstalls a Skype for Business Server mirror database. A database mirror enables you to simultaneously maintain two copies of a database, each copy residing on a different server. This cmdlet was introduced in Lync Server 2013.

Syntax

Default (Default)

Uninstall-CsMirrorDatabase
    -DatabaseType <DatabaseNameType>
    -SqlServerFqdn <Fqdn>
    [-Confirm]
    [-DropExistingDatabasesOnMirror]
    [-Report <String>]
    [-SqlInstanceName <String>]
    [-WhatIf]
    [<CommonParameters>]

Description

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. 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 can be installed and configured by using the Install-CsMirrorDatabase cmdlet. If you ever need to remove a mirror database, you can do so by using the Uninstall-CsMirrorDatabase cmdlet.

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.

Examples

Example 1

Uninstall-CsMirrorDatabase -SqlServerFqdn "atl-mirror-001.litwareinc.com" -SqlInstanceName "RTC" -DatabaseType "User" -DropExistingDatabasesOnMirror

The command shown in Example 1 uninstalls the user database from the SQL Server instance RTC on the computer atl-mirror-001.litwareinc.com. Because the DropExistingDatabaseOnMirror parameter was included, the command will also delete the actual User database mirror.

Parameters

-Confirm

Applicable: Lync Server 2013, Skype for Business Server 2015

Prompts you for confirmation before executing the command.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DatabaseType

Applicable: Lync Server 2013, Skype for Business Server 2015

Type of mirror database to be installed. Allowed values are:

ActiveMonitoring

Application

Archiving

CentralMgmt

Edge

Lyss

Monitoring

PersistentChat

PersistentChatCompliance

Provision

Registrar

SigninTelemetry

User

Parameter properties

Type:DatabaseNameType
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DropExistingDatabasesOnMirror

Applicable: Lync Server 2013, Skype for Business Server 2015

When present, deletes any existing copies of the mirrored databases from the mirror server.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Report

Applicable: Lync Server 2013, Skype for Business Server 2015

Enables you to specify a file path for the log file created when the cmdlet runs. For example:

-Report "C:\Logs\UnInstallDatabaseMirror.html"

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SqlInstanceName

Applicable: Lync Server 2013, Skype for Business Server 2015

Name of the database instance where the database is to be installed. A database instance is simply a set of running processes that provides access to database files. If this parameter is omitted, the Uninstall-CsMirrorDatabase cmdlet will use the default SQL Server instance.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SqlServerFqdn

Applicable: Lync Server 2013, Skype for Business Server 2015

Fully qualified domain name (FQDN) of the computer containing the database is to be uninstalled. For example:

-SqlServerFqdn atl-sql-001.litwareinc.com

This should be the FQDN of the primary SQL Server computer.

Parameter properties

Type:Fqdn
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Applicable: Lync Server 2013, Skype for Business Server 2015

Describes what would happen if you executed the command without actually executing the command.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

The Uninstall-CsMirrorDatabase cmdlet does not accept pipelined input.

Outputs

None