If you are locked out of the desktop, you'll have to tell more. Such as no BIOS screen, lost Windows password, boots to blank screen and so on.
Bob