Soak the pewter in an "all-metal" detergent, usually diluted in some amount of water. If the dishwasher has left dark spots on the pewter, this specially formulated detergent should help lift the spots out, as well as light scratches.
Rinse the pewter in warm water, then dry it off with a soft cloth. The dark spots should come off the pewter after several passes by the cloth. If there are noticeable scratches in the pewter, buff the surface lightly with a very fine steel wool to get the scratches out.
Polish with a fine-threaded cloth. Pewter isn't polished with any chemical agents, but exposure to air creates a patina over time. After serving food or drink in a pewter vessel, hand-clean the vessel with a mild detergent and warm water.