SQL Monitor 13

Help for older versions available.

These pages cover SQL Monitor 13, which is not the latest version. Help for other versions is also available.

Downloading the PowerShell Module

Manual download

The PowerShell Module can be downloaded from the Configuration page in SQL Monitor:

Save the PowerShell Module in a convenient location.


Automatic download

The PowerShell Module can be downloaded automatically using the below script:

  1. [Uri]$Global:MonitorUrl = 'https://your.sql.monitor.installation.com'
  2.  
  3. $WorkingDir = $PSScriptRoot
  4.  
  5. # Local paths for the downloaded module.
  6. $ModuleZip = "$WorkingDir\RedgateSQM.zip"
  7. $ModuleDir = "$WorkingDir\RedgateSQM"
  8.  
  9. # Remove any previously downloaded RedgateSQM module.
  10. if (Test-Path $ModuleZip) { Remove-Item $ModuleZip }
  11. if (Test-Path $ModuleDir) { Remove-Item $ModuleDir -Recurse -Force }
  12.  
  13. # Download and extract the RedgateSQM module.
  14. Invoke-WebRequest -Uri "$($MonitorUrl.Scheme)://$($MonitorUrl.Authority)/Configuration/DownloadPowerShellModule/Download" -OutFile $ModuleZip
  15. Expand-Archive -Path $ModuleZip -DestinationPath $WorkingDir
  16.  
  17. # Clean up previously downloaded RedgateSQM zip file.
  18. Remove-Item $ModuleZip

Do you have any feedback on this documentation?

Let us know at sqlmonitorfeedback@red-gate.com


Didn't find what you were looking for?