Invoke-sqmInstanceInventory
PerformancesqmSQLTool v1.8.2+ · Reporting🛠 Pipeline ✓ -WhatIf supported
Covers: Instance properties (version, edition, collation, CPU, memory), Databases (name, status, size, recovery, backups), Logins, Linked Servers, SQL Agent Jobs, and Always On AG membership.
Output is copied to CentralPath if configured.
Parameters
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
| -SqlInstance | string[] | Optional | $env:COMPUTERNAME | One or more instances. Pipeline-capable. |
| -SqlCredential | PSCredential | Optional | — | Credentials for all instances. |
| -OutputPath | string | Optional | Get-sqmDefaultOutputPath | Report output directory. Created if missing. |
| -ContinueOnError | switch | Switch | $false | Continue to next instance on error. |
| -EnableException | switch | Switch | $false | Re-throw exceptions. |
| -WhatIf / -Confirm | switch | Optional | — | ShouldProcess (ConfirmImpact: None). |
Execution Flow
Examples
Generate inventory for local instance
Invoke-sqmInstanceInventory
Pipeline: multiple instances, continue on error
"SQL01","SQL02","SQL03" | Invoke-sqmInstanceInventory -ContinueOnError