Catalyzes the dehydrogenation of 17-beta-hydroxysteroids. May also exhibit significant activity with a variety of cyclic and alicyclic alcohols. Uses both NAD and NADP, but the activity is much greater with NAD than with NADP (By similarity). Belongs to the aldo/keto reductase family.