So put the corn in the oven however you choose to, and set the timer for 30 minutes. Oh how I love the smell of the corn cooking this way. A real roasted smell. After 30 minutes, remove the corn from the oven. You can leave it in the husks if the rest of your dinner is not ready.