Start by resetting the bios settings to stock; you can either move the cmos jumper over one position while the pc is turned off, or remove the board battery for about one minute and reinstall. If that doesn't help, you may have a virus somewhere and need to backup your important files and format the drive and do a fresh windows or ubuntu install.