Share via

What cause and How to fix the "another program is using this file" error

Prabu Hafidz 40 Reputation points
2026-04-22T12:18:23.2233333+00:00

Why's my "search bar" in the home page is gone, when I'm already restart it, also when I clicked the "search app" it just doesn't want to open it and shows an error says "another program is using this file" can you please tell me, what's the caused of it

Correlation Id: 0e0fa9bf-03e7-42f0-9a9e-e106467460bf

Timestamp: 2026-04-22T12:15:41.000Z

DPTI: 50dca2fd3e798c067579a56dba1d544c186f13a36528779fd08e42a35c731022

Message: An unexpected error occurred.

Tag: 7q6ca

Code: 2147779844

Windows for home | Windows 11 | Performance and system failures
0 comments No comments

Answer accepted by question author

Alvise Cervellati 4,710 Reputation points Independent Advisor
2026-04-22T12:57:28.78+00:00

Hi Prabu, Welcome in Community

According to reports from users on Microsoft’s official forums, the most common causes include:

Temporary issues with Microsoft authentication servers

Corrupted files in the credential cache

Conflicts between personal and work accounts

Problems with local user profiles or certificates

Third-party software (such as antivirus tools) interfering with secure connections

Here are some steps you can try to fix the issue:

1. Clear stored credentials

Press Win + S and type Credential Manager

Open Windows Credentials

Remove any entries related to MicrosoftOffice or MicrosoftAccount

Restart your PC and try signing in again

2. Repair Office apps

  • Go to Settings > Apps > Installed apps

Search for Microsoft Office

Click Modify, then choose Repair

This process reinstalls missing or corrupted components that may prevent authentication or synchronization with your Microsoft account.

Let me know how it goes

Elvis

nb. the posted error seems different from the problem that you described, however apply these steps and let me know

Was this answer helpful?

0 comments No comments

Answer accepted by question author

AI answer

2026-04-22T12:18:37.6966667+00:00

The missing search bar and the error when opening the Search app indicate a Windows Search component problem, not a simple “file in use” situation. The error text is generic; the underlying cause is typically corruption in the Search app’s data or registry, or a policy blocking the Search app.

Use these steps, in order, on Windows 11:

  1. Test with a new user account
    • Create a new local user account and sign in with it.
    • Check whether the search bar and Search app work there.
    • If Search works in the new account, the issue is specific to the original profile and the next steps focus on repairing that profile’s Search data.
  2. Regenerate the Search app data and registry for the affected account
    • Sign out of the affected account and sign in to another admin account, or use Windows Recovery Environment as noted below.
    • For the affected account, delete the Search package data folder:
      • On Windows 11, delete: %USERPROFILE%\AppData\Local\Packages\MicrosoftWindows.Client.CBS_cw5n1h2txyewy (In some earlier builds this folder might be named Microsoft.Windows.Cortana_cw5n1h2txyewy.)
    • Sign in as the affected user.
    • Open Registry Editor (regedit.exe) and go to: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search
    • Delete the Search key.
    • Open an elevated PowerShell window and re‑register the Search app:
           Add-AppxPackage -Path "C:\Windows\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\Appxmanifest.xml" -DisableDevelopmentMode -Register
      
    • Restart the computer.
    • After restart, try the search bar and Search app again. This forces Windows to recreate the Search registry key and AppData folder and restart indexing.
  3. Check for AppLocker or policy blocking the Search app (if on a managed device)
    • If this PC is managed by an organization (work/school), the Search app can be blocked by AppLocker or Group Policy.
    • In that case, an admin should:
      • Review AppLocker logs for entries like MICROSOFT.WINDOWS.SEARCH was prevented from running or errors stating the program is blocked by group policy.
      • If AppLocker is enforcing rules that block Search, remove the AppLocker rules from the applicable Group Policy Object (GPO), allow the empty policy to apply to clients, and only then disable the AppLocker service. Rules must be cleared and applied before the service is disabled, or enforcement can continue even with the service stopped.

If the problem persists after regenerating the Search package and confirming no policy is blocking it, collect details (screenshots, exact error text, and steps tried) and submit feedback via Feedback Hub under Desktop Environment → Search so the issue can be investigated further.


References:

AI-generated content may be incorrect. Read our transparency notes for more information.

Was this answer helpful?

1 additional answer

Sort by: Most helpful
  1. Prabu Hafidz 40 Reputation points
    2026-04-22T13:58:59.5033333+00:00

    Thank you for fixing the problem, but the search bar is not showing and now available, but atleast I can do anything and searching the apps, just go to files and search it! Thank you

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.