Star Trek: The Next Generation - Season 5, Episode 15
"Power Play"
Stardate: 45571.2
While en route to the source of a subspace distress signal coming from a desolate moon, Data, Troi and O'Brien take over the bridge and force the ship to change course