Replies: 1 comment 2 replies
-
Hey @geomaxson - can you paste the sanitized output of It's very weird, but if it's on the SQL side, then read here for more info #7680 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have been using the TestRestore now successfully for some time. However, we desire to not keep our .ps1 file local to each machine but saved on the network. However since this change, the Write-DbaDbTableData step now fails with "The certificate chain was issued by an authority that is not trusted".
Here are the commands used inside our SQL Agent, CmdExec, step, before and after
powershell.exe -file "C:\Software\TestRestore.ps1" -Instance "abc,1234" -Destination "xyz,5678"
C:\Program Files\PowerShell\7\pwsh.exe -ExecutionPolicy Unrestricted -File "\network\loc\PowerShell\Prod\TestRestore.ps1" -Instance "abc,1234" -Destination "xyz,5678"
Below is the core of the TestRestore.ps1 file
Any chance this is why, and is there a possible workaround? SQL 2019
https://learn.microsoft.com/en-us/troubleshoot/sql/connect/certificate-chain-not-trusted?tabs=ole-db-driver-19
Beta Was this translation helpful? Give feedback.
All reactions