Preheat the oven to 350°F and spray a 9×13-inch baking dish with nonstick cooking spray.
Spread the thawed hash browns evenly in the prepared baking dish. Sprinkle the diced ham and 1 cup of shredded cheddar cheese over the hash browns.
In a large mixing bowl, whisk together the eggs, sour cream, heavy cream, salt, pepper, garlic powder, and onion powder until smooth.
Pour the egg mixture evenly over the hash browns, ham, and cheese. Gently press down with a spatula to ensure the ingredients are well coated.
Top with the remaining 1 cup of shredded cheddar cheese.
Bake in the preheated oven for 45 minutes, or until the casserole is set and golden brown on top.
Allow the casserole to cool for 5 minutes before slicing. Serve warm.
