Star Trek: Voyager
Inside Man
S7 E6:
When the Ferengi hijack Lt Barclay's hologram and reprogram it, the Starfleet officer enlists the help of Counselor Deanna Troi to warn the Voyager crew.
Starring
Dwight Schultz, Marina Sirtis, Richard Herd