Preheat your oven to 425°F. In a small bowl, mix together the softened butter, parsley, garlic, rosemary, thyme, salt, and pepper until well combined.
Generously apply about 1 tablespoon of the herb butter mixture onto each ear of corn, ensuring it’s evenly coated.
Wrap each buttered corn cob tightly in aluminum foil, making sure the ends are sealed.
Place the foil-wrapped corn cobs on a baking sheet and roast in the preheated oven for 20 to 25 minutes. Halfway through, turn the corn to ensure even cooking.