Stargate SG-1
The Sentinel
S5 E20:
Anubis's forces lay siege to a planet after the Shades of Grey NID team disables its defences. SG-1 works with the captives to restore the protection.