Sample Header Ad - 728x90

How to send dbachecks output to a file on disk?

-1 votes
1 answer
91 views
How do you send the dbachecks output to a file on disk? I tried the following but it resulted with the output on screen and a 0 kb file on disk.
Invoke-DbcCheck -Check Database -SqlInstance myserver -ExcludeCheck TestLastBackup, TestLastBackupVerifyOnly | Out-File c:\myserver.txt
Asked by user2368632 (1133 rep)
Sep 10, 2022, 02:55 AM
Last activity: Sep 11, 2022, 10:27 AM