how to restore a toshiba satellite laptop to factory settings windows 7 if 0 dosent work

First of all, is the pc still functional? If we can get into windows this is no problem at all! Otherwise, we will need the windows installation cd.