Season 2 Episode 7, Those Old Scientists. Looks like this photo was taken while they were shooting the scene where Spock, M’Benga, and Boimler were on the surface of Krulmuth B, investigating the Krulmuth B portal, one of my all time favorite portals, which threw Boimler back in time.