Move your washing machine away from the wall, and unplug the power cord from the wall outlet.
Turn off the hot and cold water supply valves, which lead to valves behind the washer unit on the wall of your home.
Locate the drain hose connected to your wall's drainpipe next to the hot and cold water supply valves.
Disconnect the clamp connecting the hose to the drainpipe, using an adjustable wrench, then pull the hose off the drainpipe.
Disconnect the other end of the drain hose from the rear bottom side of your washing machine. On most units you should be able to disconnect the hose with your hand but you also may need to remove a metal clamp.
Connect one end of the new drain hose to the back of your washing machine, then tighten the other end of the drain hose to the drainpipe in your wall.
Turn the hot and cold water supply valves back on, and plug the power cord back into the wall outlet.