Skip to main content

4 posts tagged with "Monitoring"

View All Tags

Uptime Reboot Policy with NinjaOne and PowerShell

· 4 min read

Long-running uptime can be useful, but it also increases risk: pending updates remain pending, patch windows get missed, and users eventually get hit with inconvenient restarts.

This script gives you a practical middle ground:

  • Detect when uptime exceeds a threshold
  • Notify the logged-in user with a Windows toast
  • Optionally let the user schedule an earlier reboot
  • Enforce a reboot deadline with a Scheduled Task
  • Write policy state and user action back to NinjaOne custom fields

Monitoring Time Drift with PowerShell

· 2 min read

Sometimes I get a script idea put in my head that's so irritatingly pervasive that the only fix is to write the damned script. David Szpunar from the NinjaOne Users Discord made a somewhat passing comment about time drift causing issues with a remote support tool and that let to me thinking... You could probably monitor for that with a PowerShell one-liner right?

Wrong! Turns out that it's more than one line!

Monitoring OneDrive status with PowerShell, CyberDrain and NinjaOne

· 4 min read

This post uses code from CyberDrain

Click the link below to check out the original post on CyberDrain.com and support Kelvin's fantastic work for the MSP community.

About this script

So firstly, if you haven't already, hit the giant orange button above to read the original blog post on CyberDrain.com to understand what this script is doing!