"All Good Things..." is the series finale of Star Trek: The Next Generation. In this episode, Captain Jean-Luc Picard commands the USS Enterprise-D (and briefly the Enterprise-E in the future timeline).
It's a common mix-up: Captain Kathryn Janeway commands the USS Voyager in Voyager's own finale, "Endgame"—not in "All Good Things...".
If you're asking about a different series or episode, let us know the exact title and we'll pinpoint the correct vessel.