-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Notebooks
- Notebook Boot and Lockup
- My laptop is turning on and off several times

Create an account on the HP Community to personalize your profile and ask a question
Your account also allows you to connect with HP support faster, access a personal dashboard to manage all of your devices in one place, view warranty information, case status and more.
1 REPLY 1
04-18-2025 11:39 AM
@Rajveer021, Welcome to HP Support Community.
Thank you for posting your query, I will be glad to help you.
Based on what you said — you enabled Secure Boot and entered a command in Troubleshoot (Command Prompt) — and now your HP laptop keeps turning on and off repeatedly. Here’s a breakdown and steps to help you recover it.
Possible Cause:
It sounds like either:
- The boot configuration (BCD) was modified or corrupted.
- Secure Boot is preventing your system from booting into a non-signed or incompatible OS (especially if you’re dual-booting).
- A command you entered changed something critical in startup behavior (like bcdedit, bootrec, or diskpart).
Steps to Fix the Boot Loop:
Option 1: Reset BIOS Settings
- Power off your laptop.
- Press F10 repeatedly as soon as you power it on to enter the BIOS Setup.
- Inside BIOS:
- Find the option to Reset BIOS to Default or Load Setup Defaults.
- Disable Secure Boot temporarily.
- Save and exit with F10.
- Then see if your PC boots normally.
Option 2: Boot to Recovery or USB
If you still have a boot loop:
- Create a Windows 10/11 bootable USB on another PC using the Media Creation Tool.
- Plug it into your laptop.
- Power on the laptop and press F9 or Esc to get the boot menu.
- Boot from the USB.
- Go to Repair your computer > Troubleshoot > Advanced Options:
- Try Startup Repair first.
- If you remember the command you entered, let me know — I can guide you in undoing it via Command Prompt.
Option 3: System Restore (if enabled)
If the USB boots:
- Go to Troubleshoot > Advanced Options > System Restore.
- Choose a restore point from before you made the changes.
I hope this helps.
Take care and have a good day.
Please click “Accepted Solution” if you feel my post solved your issue, it will help others find the solution. Select "Yes" on the bottom left to say “Thanks” for helping!
Max3Aj
HP Support
Be alert for scammers posting fake support phone numbers and/or email addresses on the community.
If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.
Didn't find what you were looking for?
Ask the community
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.