Bynar hijacking of the Enterprise-D

Theft of the ship to save Bynaus

The theft of the Enterprise-D from Starbase 74 by a team of Bynars, who needed its vast computer to hold their homeworld's data while a nearby supernova's pulse passed.

In The Next Generation episode 11001001, the Enterprise-D docks at Starbase 74 for a computer upgrade carried out by Bynars, a species who work in linked pairs and think in binary. They also improve the holodeck, where Riker is captivated by Minuet, a remarkably lifelike woman in a New Orleans jazz club.
Minuet is a distraction. The Bynars fake a failure of the antimatter containment, the ship is evacuated, and they take it out of dock with only Riker and Picard, still in the holodeck, left aboard. They fly to Bynaus in the Beta Magellan system.
The two officers set the auto-destruct and retake the bridge, only to find the Bynars collapsed. A star had gone nova and its electromagnetic pulse would have wiped their planet's master computer, so they stored its contents in the Enterprise. Picard and Riker work out the access code and restore the data.