Demand Side Management (DSM) technique encourages the consumers to adjust their energy usage pattern to get optimized results for achieving the goal of minimizing the electricity consumption cost. This mechanism provides benefits to both side customer and utility in terms of cost reduction and grid stability. To regulate the increasing energy demand extensive research is being carried out for possible implementation of different DSM techniques. DSM technique ensures the user participation for achieving the energy optimization goal. User preferences and comfort is much desirable while achieving the goal of reducing Peak to average ratio (PAR), energy cost reduction and grid stability. In this paper we are proposing an Energy Management System (EMS) by considering different user environments along with the users preferences for shifting the appliances operational time. We have selected home and office environments for implementing our EMS. We are using GA, a heuristic technique, to solve the energy management problem.