how can i restore my computer to factory settings

What is the exact make and model?
Why do you want to do this (There may be better solutions)?

hughv has a good point, depending on why you want to do this there may be better solutions... however, if you just want to wipe it and start over you'll need the discs that came with the computer when you purchased it which should include the operating system and device drivers, do you have those?

HELLO
What is actually wrong with you pc before you wipe the slate clean

what kind of a PC Desktop or laptop. Dell or HP Please don't say E-Machine LOL

if you bought the computer brand new out of the box, it should have came with a few discs. Including an OEM of the OS and all the device drivers.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.