Thaw potatoes and combine with 1/2 cup margarine, salt, pepper, onions,soup, sour cream and cheese. Place in a greased 9 x 13 inch casserole.
Combine corn flakes and remaining 1/4 cup margarine, spread over potatomixture. Bake at 350 degrees for 45 to 60 minutes.