A whole spaghetti squash will take about 20 minutes to cook in the microwave. To do so, place the cut spaghetti squash face down in a glass baking dish with about 1 inch of water. Microwave on high for 20 minutes or until you can easily insert a fork into the flesh.