Place a trivet on the bottom of the pot. Add the corn cobs, stacking vertically. Place as many as you can that will fit in your size pressure cooker. Make sure the lid closes properly.
Pour the water or stock over top of the corn (stock adds more flavor, you can use chicken or vegetable). Pressure cook on high for 2 minutes and vent with a quick release.