If its a windows 7 or Vista machine, see if it gives you an option to run startup repair, it may take care of for you. Also many manufacturers put a recovery partition on the hard drives, you might Google for your model to see how to access it, doing that may at least let you get to factory settings.