As the name would imply, this software is a service wrapper for Plex Media Server.
You can use it to run PMS on a Windows computer without having to be logged in. Just install it, set the user it should run as, and you're all set.
Optionally, you can use PlexService to configure remote drive mappings for your media, as well as auxiliary applications to run when Plex is running.
For help and further information please visit the Plex forums: https://forums.plex.tv/discussion/93994/pms-as-a-service
- Run Plex Media Server as a background service.
- Handy-dandy tray application, accessible to all users.
- Settings window in the style of Windows 11 with light and dark mode.
- Access Plex Appdata folder and web interface from tray application.
- Option to mount UNC shares as mapped drives.
- Option to run/stop Auxiliary applications on Plex start/stop.
- Option to auto-restart Plex if it crashes/stops running.
- Automatically detect PMS updates and disable auto-restart feature until updates complete.
- Automatically detect failed drive mounts and wait a configured amount of time before re-trying.
- Option to not start Plex on drive map failures, preventing accidental library deletion with auto-clean.
- Option to log auxiliary application output to the PlexService log.
- Option to start auxiliary applications before Plex, e.g. a tuner Plex needs on startup.
- Update all or only selected Plex libraries from the tray.
- Separate credentials per network share, tested before they are saved.
- Start, stop and restart Plex from the command line.
- Supports silent installation.
Everybody who can sign in to the computer can see the state of Plex in the tray. Changing settings, starting or stopping Plex and controlling auxiliary applications is limited to administrators and to the account the service runs as.
Without a user name a share is accessed with the account the service runs as. A user name and password can be set per share, the password is encrypted for the service account. If the service later runs as another account, the password has to be entered again. Windows only allows one account per server, so all shares on the same server have to use the same one.
New or changed shares are tested by the service before they are saved, with the account the mapping will use. Changes take effect the next time Plex starts.
Plex can be controlled through the service, also remotely with sc \\computer ...:
sc control PlexService 128 (start Plex)
sc control PlexService 129 (stop Plex)
sc control PlexService 130 (restart Plex)
PlexServiceTray.exe --settings opens the settings window directly.
Simply download the latest release, run the installer, and enter the user information when prompted. The account needs a password, Windows doesn't allow a service to run as an account without one.
You can also silently install the package using the following syntax:
msiexec.exe /i c:\PlexServiceInstaller.msi /QN SERVICE_USERNAME="MyUsername" SERVICE_PASSWORD="MyPassword"
NOTE: You must run the install command as administrator if executing silently, as the application can't prompt for elevation. Installation will fail if you don't run your script/command prompt as admin.
You should be able to upgrade PlexService in-place. In rare occurrences, you may not be able to properly update or uninstall PlexService.
If that happens, see below for steps to manually remove it for a clean installation.
You only need the .NET SDK, Visual Studio is optional. Run .\build.ps1 in PowerShell, it builds everything and puts the installer into the artifacts folder. The WiX toolset is downloaded automatically on the first run.
The installer needs WiX 3.14 or later. If an older WiX is installed (the WIX environment variable points to it), either install WiX 3.14.1 or run $env:WIX = $null; .\build.ps1 so the script downloads 3.14.1. This also applies when building the installer in Visual Studio.
To completely remove the PlexService application, do the following:
- Open an elevated command prompt. (Start menu, type 'cmd', right-click, run as administrator)
- Enter the following commands:
sc stop PlexService
taskkill /IM PlexService.exe /F
sc delete PlexService
del /S C:\progra~2\PlexService\
- Optionally, ff you wish to delete your PlexService settings, execute the following command:
del /S "C:\users\<PMSSERVICEUSERNAME>\AppData\Local\Plex Service\"
- Finally, reboot your PC to ensure all services are really stopped and released.