How to Wipe Your iPhone Without Losing Your Jailbreak Using Semi-Restore [Windows]
These are instructions on how to wipe your iPhone, iPad, or iPod touch to near stock condition without losing your jailbreak using Semi-Restore for Windows.
Before beginning make sure you do a backup of your device.
**Until a fix is released, do NOT use SemiRestore if you installed afc2add.
Create a Pwnage folder on your desktop. Download Semi-Restore from here and save it to the Pwnage folder you just created.
Extract the Semi-Restore archive to the Pwnage folder
Right click the Semi-Restore executable and select Run as Administrator from the popup menu.
*Note: If you have issues running Semi-Restore make sure you have the Visual C++ 2010 Redistributable from Microsoft installed. You may also want to try Windows XP compatibility mode.
When Semi-Restore launches click the OK button to continue past the welcome message.
Connect your iOS 5.0 to iOS 6.1.2 iPhone, iPad, or iPod touch to the computer and click the SemiRestore button.
You phone will be rebooted as Semi-Restore wipes it clean.
Once Semi-Restore has completed you will be informed that the process was successful and your iOS device will be rebooted to the new device setup wizard.
Thanks go to CoolStar for making this tutorial possible.