Star Trek: Deep Space Nine
Civil Defense
S3 E7:
When Chief O'Brien accidentally triggers an old anti-insurgency program left behind by the Cardassians, the station's computers believe that the crew is a mob of rebelling Bajorans and takes steps to contain them.
Starring
Andrew Robinson, Marc Alaimo, Danny Goldring