|Author||Chrissy LeMaire (@cl), netnerds.net|
|Availability||Windows, Linux, macOS|
Want to see the source code for this command? Check out Remove-DbaNetworkCertificate on GitHub.
Want to see the Bill Of Health for this command? Check out Remove-DbaNetworkCertificate.
Removes the network certificate for SQL Server instance
Removes the network certificate for SQL Server instance. This setting is found in Configuration Manager.
Remove-DbaNetworkCertificate [[-SqlInstance] <DbaInstanceParameter>] [[-Credential] <PSCredential>] [-EnableException] [-WhatIf] [-Confirm] [<CommonParameters>]
PS C:\> Remove-DbaNetworkCertificate
Removes the Network Certificate for the default instance (MSSQLSERVER) on localhost
PS C:\> Remove-DbaNetworkCertificate -SqlInstance sql1\SQL2008R2SP2
Removes the Network Certificate for the SQL2008R2SP2 instance on sql1
PS C:\> Remove-DbaNetworkCertificate -SqlInstance localhost\SQL2008R2SP2 -WhatIf
Shows what would happen if the command were run
The target SQL Server instance or instances. Defaults to localhost. If target is a cluster, you must also specify InstanceClusterName (see below)
Allows you to login to the computer (not sql instance) using alternative credentials.
By default, when something goes wrong we try to catch it, interpret it and give you a friendly warning message.
This avoids overwhelming you with "sea of red" exceptions, but is inconvenient because it basically disables advanced scripting.
Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch.
Shows what would happen if the command were to run. No actions are actually performed.
Prompts you for confirmation before executing any changing operations within the command.