Execution Flow
The form uses the Visual Studio dark color palette (
#1e1e1e background, #252526 panel, #007acc accent) to match the sqmSQLTool main GUI. Changes are saved only when the user clicks OK — closing the window or clicking Cancel leaves the exclusion table unchanged. See also: Sync-sqmBackupExcludeTable to propagate the list to secondary instances.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| -SqlInstance | String | Optional | SQL Server instance. Default: $env:COMPUTERNAME. |
| -SqlCredential | PSCredential | Optional | SQL authentication credential. |
Return Value
No pipeline output. The function writes directly to the sqmBackupExclude table on user confirmation.
Examples
Example 1 — Open exclusion editor for local instance
Show-sqmBackupExcludeForm
Example 2 — Remote instance with SQL authentication
$cred = Get-Credential
Show-sqmBackupExcludeForm -SqlInstance "SQL01" -SqlCredential $cred