Originally from http://support.microsoft.com/kb/307545
Download this.,extract it and follow the steps in read.txt.Steps are as follows:
copy the files default.bat and restore.bat files in the pendrive.Insert it into usb port.
>>default.bat::
To restore windows registry to default(all drivers,softwares,user account etc settings will be loaded to default i.e.drivers,softwares,user accounts have to be installed again)
1>Insert XP professional CD,(see that boot order is cd/dvd drive as 1st option)…Press any key to boot from cd..(press enter)
2>After loading of default system files..
press R…to repair from CD(recovery Console)
3>wait for approx 20 seconds..choose windows folder by pressing 1 or any other key(eg. for 1. C:\windows press 1)
4>type administrative password…
majority do not have password..so press enter to continue( or if u have any password type it and press enter)
5>type
X:
(where X is pendrive’s drive letter…u have to do hit and trial …type dir to see the contents of the drive,eg. E:)
6>now type
BATCH default.bat
7>to restart type
exit
Done!!
=====================================================
Optional (u want to get back ur old registry settings…just in case..read on)
>>restore.bat::
after running default.bat,u want to restore back to ur old registry settings run this file.
steps 1 to 5 as above
6>now type
BATCH restore.bat
7>to restart type
exit
Done!!