Invoke-sqmPatchAnalysis
PerformancesqmSQLTool v1.8.2+ · Compliance🛠 Pipeline
Parameters
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
| -SqlInstance | string[] | Optional | $env:COMPUTERNAME | One or more instances. Pipeline-capable. |
| -SqlCredential | PSCredential | Optional | — | Credentials for connections. |
| -OutputPath | string | Optional | — | CSV report output path. |
| -EnableException | switch | Optional | $false | Re-throw exceptions. |
Execution Flow
Examples
Check patch level for single instance
Invoke-sqmPatchAnalysis -SqlInstance "SQL01"
Pipeline multiple instances and export to CSV
"SQL01","SQL02","SQL03" | Invoke-sqmPatchAnalysis -OutputPath "D:\Reports\patches.csv"