
(Record the PID for the plex process, right click the task in the task scheduler library and click run. If you’re running Plex Media Server on a unix-like platform like Linux or FreeBSD, you’ll start, stop, and restart your Plex Media Server from the command line. Enter the path to the folder your two scripts are in (you can copy this from the textbox above, just remove the StartPS.bat from the path. Relaunch the application as you normally would using a shortcut in your Start Menu, Dock, or the like to fire it up. The "start in" field is not optional for us. Click browse and find the location of the. For the settings, select "daily" and enter the time of day you want it to run.
#Restart plex media server windows#


That will run powershell with the privs it requires to start/stop processes. Look for the line that says PLEXMEDIASERVERUSERplex. Open that file in notepad and paste in the following: powershell.exe -ExecutionPolicy ByPass -command "&. Make the second file and name it StartPS.bat (or anything with a.

Above is the default location for 64bit windows OS's. If your plex is installed in a different location, change the path in the Start-Process line to the location of your plex exe. This will kill any process that starts with "Plex", then run the plex exe to start it back up again. Start-Process -FilePath "C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe" Open it up in notepad and paste in the following: Stop-Process -processname "Plex*" I put mine in plex's data directory (folder isn't name "data", it's just where it stores all the data for your media server). Make a folder for the files you're about to create. Things will be a bit different for other windows OS's This contains step by step directions for Windows 7.
#Restart plex media server how to#
Here are the directions for how to make a powershell script restart plex daily to help reduce the chances of your plex media server becoming unreachable outside your home network after it's been running for a while.

Please go to the relevant subreddits and support forums, for example: Build help and build shares posts go in their respective megathreads No referral / affiliate links, personal voting / campaigning / funding, or selling posts Welcome to /r/Plex, a subreddit dedicated to Plex, the media server/client solution for enjoying your media! Plex Community Discord Rules Latest Regular Threads: No Stupid Q&A: Tool Tuesday: Build Help: Share Your Build: Submit Troubleshooting Post Files not showing up correctly?
