If you are using Windows 10, you can try the following.
Windows 10 actually has a built-in method for wiping your PC, and restoring it to an ‘as new’ state. You can choose to preserve just your personal files or to have it erase everything.
To do this go to "Start", then "Settings". Next choose "Update & security" and then "Recovery" Here click "Get started" and select the option you wish to use. From here just follow the on-screen instructions to restore Windows 10 back to how it was upon leaving the factory.
In prior versions of Windows you should be able to go into "Control Panel" and then "Recovery". Then click on the "Advanced recover methods" link. In the next screen you would click "Return your compute to factory condition".