Get-sqmAutoGrowthReport
PerformancesqmSQLTool v1.8.2+ · File Analysis✓ Warning Detection
Parameters
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
| -SqlInstance | string | Optional | $env:COMPUTERNAME | Target SQL Server instance. |
| -SqlCredential | PSCredential | Optional | — | Credentials for the connection. |
| -Database | string[] | Optional | All user DBs | Target databases (name or wildcard pattern). |
| -IncludeSystem | switch | Switch | $false | Also include system databases (master, model, msdb). |
| -Detailed | switch | Switch | $false | Include additional file properties (physical path, file ID). |
| -EnableException | switch | Switch | $false | Re-throw exceptions immediately. |
Execution Flow
Examples
Generate AutoGrowth report for all databases
Get-sqmAutoGrowthReport -SqlInstance "SQL01"
Report including system databases and physical paths
Get-sqmAutoGrowthReport -SqlInstance "SQL01" -IncludeSystem -Detailed | Where-Object Severity -eq "Critical"