Skip to content

SendHelpICannotCode/Plex-Media-Server-On-USB-Stick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¦ Portable Plex Media Server

Easily run Plex Media Server from a USB stick without leaving traces on the host system. This setup ensures all Plex data, configurations, and metadata are stored on the USB drive, allowing you to use Plex on any Windows PC.

πŸš€ Features

Fully Portable – Runs Plex directly from a USB stick.

No Registry Footprint – Saves and restores registry values dynamically.

Data Persistence – Keeps metadata, libraries, and settings on the USB stick.

Automatic Cleanup – Ensures no Plex data remains on the host PC after use.

Symlink Setup – Redirects Plex’s local app data to the USB drive.

πŸ› οΈ Installation & Usage

1️⃣ Prepare Your USB Stick

Install Plex Media Server directly onto your USB stick or copy an existing installation.

Ensure your Plex data is stored in:

USBDrive:\Plex\PlexData\

2️⃣ Setup & Execution

Clone this repository or download the plex_launcher.bat and plex_cleanup.bat scripts.

Place both scripts in the root directory of your USB stick.

To start Plex, double-click plex_launcher.bat.

To clean up after use, run plex_cleanup.bat.

3️⃣ Registry Handling

On first execution, plex_launcher.bat backs up existing registry values if no backup is stored on the USB.

If no registry entries are stored on the system either, Plex will think there is no media server configured and prompt you to create a new one.

When Plex starts, it restores saved registry values from the USB stick.

When finished, plex_cleanup.bat ensures no registry traces remain on the PC.

πŸ— File Structure

X:\ (USB Stick) │── Plex
β”‚ β”œβ”€β”€ Plex Media Server
β”‚ β”œβ”€β”€ PlexData\ (Metadata, Preferences, Cache) │── plex_launcher.bat │── plex_cleanup.bat │── README.md

πŸ–₯️ How It Works

Detects USB Drive: Identifies the correct USB stick location.

Handles Registry: Saves, deletes, and restores Plex registry settings.

Creates Symlink: Redirects AppData\Local\Plex Media Server to the USB stick.

Starts Plex Media Server from the USB stick with the correct paths.

Ensures Cleanup: After executing the plex_cleanup.bat, no local files, registry entries, or symlinks remain.

πŸ“ Notes

Ensure your Plex account is logged in on the new PC to access remote servers.

You may need to manually approve network access for Plex on new PCs.

The script automatically adjusts drive letters when used on different machines.

πŸ”§ Troubleshooting

❓ Plex Does Not Start?

Try running plex_launcher.bat as Administrator.

Check if the Plex Media Server.exe path is correct in the script.

πŸ’‘ Enjoy your portable Plex setup! πŸš€

About

Small repo wich shows the structure of a Plex Media Server on an USB stick.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors