Cleaning up paused devices from PRTG with Powershell
One of our AWS based products uses auto-scaling and when new instances are deployed a script automatically creates sensors for them in PRTG (our monitoring tool). When the instances are scaled down/terminated there is not a script that automatically removes them from PRTG (in part so that we can…
Using Test-NetConnection to diagnose network connectivity
Powershell version 4 and Windows 8.1 / 2012 R2 introduced the Test-NetConnection command as a tool for performing network connectivity tests with Powershell. Test-NetConnection allows you to perform ping, traceroute and TCP port tests and from Windows 10 and Server 2016 onward introduces the ability to do "Diagnose Routing" tests…
Using Write-Progress to provide feedback in Powershell
I like my scripts to give feedback to the console to demonstrate progress where possible and Powershell provides a number of cmdlets to do this, one of which is Write-Progress. The Write-Progress cmdlet displays a progress bar in a Windows PowerShell command window that depicts the status of a running…
Get Transaction Sensor URL settings from PRTG with Powershell
If you're looking for a way to interrogate multiple HTTP Transaction Sensors in your PRTG monitoring installation using a script then this blog post is for you. I was interested in auditing our monitoring sensors to check they were correctly configured, in particular our Transaction Sensors which visit a series…
Get uptime from multiple servers with Powershell
The following script can be used to get the current uptime from a collection of servers in Active Directory using WMI. I used it as a way to audit our estate, keen to understand how long servers have been operational for, in part to identify those which were potentially not…