If you're ready to replace your old PC and hand it down to a friend or family member, you'll need to wipe your data and reset it. Follow these instructions to make sure you do it the right way.
For a number of years Microsoft Windows has had a nice feature for recovering from something "bad" using system restore points. These system snapshots can be configured to happen automatically.