Redgate Monitor 14

Help for older versions available.

Downloading the PowerShell Module

Manual download

The PowerShell Module can be downloaded from the Configuration page in Redgate 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\RedgateMonitor.zip"
  7. $ModuleDir = "$WorkingDir\RedgateMonitor"
  8.  
  9. # Remove any previously downloaded RedgateMonitor 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 RedgateMonitor 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 RedgateMonitor zip file.
  18. Remove-Item $ModuleZip

Didn't find what you were looking for?