Skip to content

bobac/msprmmscripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

MSP RMM scripts

Hopefully slowly-growing set of small useful scripts for MSP RMM tasks

Reboot-Long-Uptime.ps1

Designed to be run in a regular manner (e.g. each hour and reboot machine if it is running for longer than specified number of days). The reason is to avoid reboot windows at night when most of the notebooks are hibernated and the time for reboot task is missed. Furthermore, from Windows 8 on there is another issue with shuting down the machine which actually does not shut down the OS, it just hibernates it do disk. Which might lead to unacceptable long uptimes (weeks, months).

Usage:

When ivoked, it looks for -DaysTreshold (default 10 minutes) and -WarningTimeSec (default 300 seconds - 5 minutes). If the machine's uptime is greater than -DaysTreshold [in days] the machine is rebooted. That's all :-) Intended to be run from scheduler or as an Automated task from MSP RMM agent.

Example:

Reboot-Long-Uptime -DaysTreshold 2 -WarningTimeSec 60
  • reboots the machine if it is runnint for more than 2 days with 1 minute notice to user

Turn-Off-Fast-Startup.bat

Turns off Fast startup feature so Windows 10 machines will not hibernate when user selects to shut the machine down. Should stop veeery long uptimes. Scraped from the web, credits inside the batch file.

Usage:

Just run and enjoy. Intended to be run as a MSP RMM task with manual invocation.

About

Small automation scripts for MSP RMM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published