ニュース

Function Test-Connection { ## Script contents here } Be sure to name it Test-Connection so that it will override the default Test-Connection cmdlet.
Test-SqlConnection -ServerName 'serverhostname' -DatabaseName 'DbName' -Credential (Get-Credential) Next time your script is failing when you least expect it because of a failed SQL connection, use ...