How to Schedule a Daily Shutdown for My Plex Server?

0
4
Asked By MysteriousMoose42 On

I'm trying to set up my PC to automatically shut down my Plex server at 11 PM every night using Task Scheduler. I can do it manually, but I often forget, and when that happens, Plex updates run in the background and cause my PC to crash and restart. I'm looking for help to automate this so it runs smoothly without my intervention.

4 Answers

Answered By NerdyNarwhal21 On

A simple command, like `Shutdown.exe -r -t 0`, can reboot your PC, but just so you know, it might turn everything off instead of just Plex. Make sure to double-check that before you run it!

Answered By CuriousCat77 On

Have you thought about figuring out why Plex is doing those updates? If you want to get around the issue, using `Stop-Service` to kill the Plex service might be a straightforward fix for you. That way, you don't even have to shut down the PC completely.

Answered By TechyTurtle88 On

To automate the shutdown, you can set Task Scheduler to launch PowerShell and point it to your shutdown script. If you need a detailed guide, there's a step-by-step tutorial you can check out [here](https://o365reports.com/2019/08/02/schedule-powershell-script-task-scheduler/). It's a handy way to set everything up properly!

Answered By MindfulMiner39 On

Ensure you're using the correct process name for Plex. If the script runs correctly when you execute it manually but fails with Task Scheduler, it might be a case of the script not recognizing the context it's running in.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.