Execution Flow
Only supplied parameters overwrite existing values — unspecified keys are preserved from the current config. Read the active configuration with
Get-sqmConfig. The config file is stored per-user in %USERPROFILE%\.sqmSQLTool\config.json.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| -LogPath | String | Optional | Directory for log files used by Invoke-sqmLogging. |
| -OutputPath | String | Optional | Default output directory for reports. |
| -CentralPath | String | Optional | Optional central storage for additional report copies. |
| -OlaJobNameFull | String | Optional | Name of the Ola FULL backup job for user databases. |
| -OlaJobNameDiff | String | Optional | Name of the Ola DIFF backup job for user databases. |
| -OlaJobNameLog | String | Optional | Name of the Ola LOG backup job for user databases. |
| -OlaJobNameIndexOpt | String | Optional | Name of the Ola IndexOptimize job. |
| -OlaJobNameIntUserDb | String | Optional | Name of the Ola IntegrityCheck (user databases) job. |
| -OlaJobNameIntSysDb | String | Optional | Name of the Ola IntegrityCheck (system databases) job. |
| -OlaJobNameSysDbBackup | String | Optional | Name of the Ola system database FULL backup job. |
| -TsmManagementClasses | String[] | Optional | Valid TSM management class names (e.g. MC_B_NL.NL_42.42.NA). |
| -HpuDomainGroupMap | PSCustomObject[] | Optional | Array of {DomainPattern, GroupNamePattern} objects evaluated in order by Get-sqmHpuAllowGroup. |
| -SsrsInstallerPath | String | Optional | UNC or local path to the SSRS installer, used as default by Install-sqmSsrsReportServer. |
Return Value
Returns a PSCustomObject representing the full saved configuration after applying the supplied changes.
Examples
Example 1 — Set log and output paths
Set-sqmConfig -LogPath "C:\Logs\sqmSQLTool" -OutputPath "C:\Reports"
Example 2 — Override Ola job names
Set-sqmConfig -OlaJobNameFull "OlaHH-FULL" -OlaJobNameLog "OlaHH-LOG"
Example 3 — Configure HPU domain group mapping
Set-sqmConfig -HpuDomainGroupMap @(
[PSCustomObject]@{ DomainPattern = 'firma.de'; GroupNamePattern = 'Fg_DC_AllowAudit_Mod' },
[PSCustomObject]@{ DomainPattern = '*'; GroupNamePattern = 'Rg_DC_AllowAudit_Mod' }
)