Already a NinjaOne customer? Log in to view more guides and the latest updates.

Script Share: Startup/Reboot/Power Management

*Disclaimer — NinjaOne does not verify or test the scripts posted in this forum. We recommend testing all custom scripts on a small set of devices prior to running them on a broad scale*

Submit new scripts and script requests in our Script Share community topic in the Dojo.

 

NameDescriptionOS
Battery Drain Report + Daily Chart with Critical Alert (SleepStudy, PowerShell)

 

Windows
Check for pending operations waiting for a reboot

 

Windows
Weekly reboots based on Ninja custom fields

 

Windows
Scheduled Wake-on-LAN of Windows devices of the same organisation (Powershell + API)

 

Windows
Schedule reboot at midnight if uptime exceeds 30 days

 

Windows
Reboot queryQuery whether a restart is necessary Windows
Reboot Prompt with GUI and Postpone Actions Windows
PXE Boot from NinjaRMM Windows
Disable Fast Startup Windows
Start/Stop Hyper-V Virtual Machines Windows
Set/Change Power Management Settings Mac
Reboot: Logged-in User Windows
Show Toast on Reboot Windows
Reboot Server

 

Windows
Reboot Windows
Notify User Of Uptime Before Forced Reboot Windows
Printer Spooler RestartReset Dependencies, Clear Pending JobsWindows
Enable WOLFor HP, Lenovo, DellWindows
Restart Computer: At Night/No Logged In User Windows
Monitor Battery State Windows
Power Management Windows
Adjust W10 Power Setting Windows
Prompt User to Reboot Windows
End-User Reboot Prompt Windows
Shutdown Machine Windows
Restart Necessary QueryQuery whether a restart is necessary for Windows machinesWindows

 

FAQ

Next Steps