We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92ec7d1 commit 0e135ddCopy full SHA for 0e135dd
functions/Remove-DbaNetworkCertificate.ps1
@@ -115,15 +115,15 @@ function Remove-DbaNetworkCertificate {
115
$vsname = $args[3]
116
117
$regPath = "Registry::HKEY_LOCAL_MACHINE\$($regRoot)\MSSQLServer\SuperSocketNetLib"
118
- $cert = (Get-ItemProperty -Path $regPath -Name Certificate).Certificate
+ $thumbprint = (Get-ItemProperty -Path $regPath -Name Certificate).Certificate
119
Set-ItemProperty -Path $regPath -Name Certificate -Value $null
120
121
[pscustomobject]@{
122
ComputerName = $env:COMPUTERNAME
123
InstanceName = $instanceName
124
SqlInstance = $vsname
125
ServiceAccount = $serviceAccount
126
- RemovedThumbprint = $cert.Thumbprint
+ RemovedThumbprint = $thumbprint
127
}
128
129
0 commit comments