-
×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
- Gaming
- Gaming Notebooks
- command box doesnt close and opens once i switch on my lapto...

Create an account on the HP Community to personalize your profile and ask a question
06-30-2026 03:45 AM
Hi @Captainredhair,
Welcome to the HP Support Community.
Thank you for posting your query. I will be glad to help you.
This looping command prompt issue is a known bug following some AMD driver updates. It happens because a background task (often amdafdapp.exe) keeps crashing and relaunching.
To stop the pop-up loop permanently, use a quick service fix, then reinstall your drivers.
Step 1: Temporarily Stop the Loop:
- Press Ctrl + Shift + Esc to open the Task Manager.
- Switch to the Services tab at the top.
- Look for a service named AMD ACP AFD User Service (or similar AMD audio/processor services).
- Right-click the service and select Stop. This will immediately stop the command prompt from reopening.
Step 2: Permanently Fix with Clean Drivers
Because your AMD component is corrupted, a clean installation is required.
- Download the AMD Cleanup Utility.
- Run this utility to thoroughly remove all traces of your current AMD graphics and processor software.
- Restart your laptop.
- Visit the Official HP® Support page to download the latest, stable AMD graphics and chipset drivers specifically verified for your HP OMEN 16.
I hope this will help.
Take care and have a good day.
I'm an HP Employee.
If this reply helped resolve your issue, please select the Accept as Solution as it helps others in the community quickly find the answer they’re looking for.
And if you found this reply helpful, clicking Yes below is a great way to let us know we’re providing the support you need, as it encourages us to keep improving and sharing helpful guidance.
07-01-2026 02:52 AM
Thank you for your response.
If a command box keeps reopening at startup, it may be caused by a program or startup item that is launching automatically in the background. Based on the HP content provided, these are the best next steps:
- Check startup items using MSCONFIG:
- Type MSCONFIG in Windows search.
- Review the Startup settings.
- Disable non-essential items that may be launching at startup.
- Keep security software enabled.
- Type MSCONFIG in Windows search.
- Check background programs:
- Programs minimised to the system tray can still run and reopen.
- If an app starts with Windows, disable that option from the app’s own settings if available.
- Programs minimised to the system tray can still run and reopen.
- Use Diagnostic Startup:
- In MSCONFIG, HP’s video shows using Diagnostic Startup to prevent startup items from loading, then re-enable only the items you need.
- In MSCONFIG, HP’s video shows using Diagnostic Startup to prevent startup items from loading, then re-enable only the items you need.
- If the issue started recently, try Microsoft System Restore:
- This can return the PC to an earlier state without removing personal data.
- This can return the PC to an earlier state without removing personal data.
- If a specific app is causing it, uninstall and reinstall that software.
- If the issue continues, use HP Recovery Manager options in order of least to greatest impact:
- Reinstall software/programs that came with the PC
- Reinstall drivers
- Microsoft System Restore
- Microsoft Refresh
- Full HP Recovery
I hope this will help.
- Reinstall software/programs that came with the PC
Take care and have a good day.
I'm an HP Employee.
If this reply helped resolve your issue, please select the Accept as Solution as it helps others in the community quickly find the answer they’re looking for.
And if you found this reply helpful, clicking Yes below is a great way to let us know we’re providing the support you need, as it encourages us to keep improving and sharing helpful guidance.