Copy-sqmToCentralPath
Filesystem
sqmSQLTool v1.8.2+ · Utility
Get-sqmConfig -Key 'CentralPath'). The function is designed as a silent helper — if no CentralPath is configured it returns immediately without error. Source files that do not exist are skipped with a Write-Verbose message.
If the configured CentralPath directory does not yet exist it is created automatically. A failure to create it produces a warning and the function exits. Each file is copied with
Copy-Item -Force -ErrorAction SilentlyContinue; the filename at the destination is the leaf name of the source path.
Parameters
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
| -Path | string[] | Required | — | One or more file paths to copy to CentralPath. Missing files are silently skipped. |
Execution Flow
Examples
Copy a single report file to CentralPath
Copy-sqmToCentralPath -Path "C:\Reports\DBHealth_2026-06-30.html"
Copy multiple files at once
Copy-sqmToCentralPath -Path @("C:\Reports\report1.html", "C:\Reports\report2.txt")