"Operation Righteous Cowboy Lightning" is the twelfth episode of the fifth season of the American television comedy series 30 Rock. It was written by executive producer Robert Carlock. The director of this episode was Beth McCarthy-Miller. It originally aired on the National Broadcasting Company (NBC) in the United States on January 27, 2011.