Files on File Server locked by "another user" when user opened

Gary Gu-ext 10 Reputation points
2026-11-02T05:47:35.8366667+00:00

We found few users unable to open files on share folders , it will display opned by "another us" , our security teams said to restart this service "SMS Agent Host" , yeah after restart this servie the files could be opened but the next day the same issue even we restart PC . It was issued one week ago. It seems MS defender issue , when defender scan files it will be locked but no release this file . So what we should do next step for PC client.

User's image

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
0 comments No comments

8 answers

Sort by: Most helpful
  1. Daphne Huynh (WICLOUD CORPORATION) 2,540 Reputation points Microsoft External Staff Moderator
    2026-11-03T01:50:19.0566667+00:00

    Welcome to Microsoft Q&A!

    Thank you for taking the time to provide the detailed information and screenshot.

    Based on the behavior you described, Excel is detecting the workbook as already open for editing. For a file stored on an SMB share, this can occur when an open file handle or an Office lock remains associated with the document.

    Since restarting SMS Agent Host (CcmExec.exe) temporarily releases the file, there appears to be a relationship with activity on the affected client. However, this behavior alone is not sufficient to confirm that Microsoft Defender Antivirus is responsible for holding the file.

    SMS Agent Host is the Configuration Manager client service. Microsoft also documents specific antivirus exclusions for Configuration Manager client components, including CcmExec.exe. These recommendations are specific to Configuration Manager and should not be considered confirmation that Defender is causing this particular file-locking behavior.

    I would like to share with you some recommended troubleshooting that may help you.

    Before restarting SMS Agent Host or the Windows 11 computer the next time the problem occurs, I recommend identifying which process actually owns the handle to the affected file:

    1. Run Microsoft Sysinternals Process Explorer as administrator.
    2. Select Find > Find Handle or DLL.
    3. Search for the affected file name, for example Shoes ST Report SS26 - Oct WK4.xlsx.
    4. Check which process is shown as holding the file handle.

    At the same time, ask the file-server administrator to check Computer Management > System Tools > Shared Folders > Open Files for the affected workbook. This can help determine whether an SMB file handle remains open and identify the associated client/session.

    I would not recommend disabling Microsoft Defender Antivirus or adding a broad exclusion for the shared folder based only on the current symptoms. Antivirus exclusions reduce security inspection and should be considered only after the process responsible for the lock has been identified and the exclusion has been confirmed as appropriate for the environment.

    The most important validation is therefore to capture the file-handle owner while the issue is occurring, before restarting SMS Agent Host or Windows.

    • If CcmExec.exe owns the handle, the Configuration Manager client configuration and logs should be investigated and the documented Configuration Manager antivirus exclusions should be verified.
    • If Defender-related activity is identified instead, Defender diagnostic/performance information should be collected during reproduction and reviewed before changing the Defender policy.

    I understand that you may be looking for a definitive explanation of why the file handle is not being released. Unfortunately, further investigation would require access to diagnostic data from the affected Windows 11 clients, SMB/file-server sessions, Configuration Manager, and potentially Microsoft Defender telemetry. Microsoft Q&A is a public community forum and does not have access to this environment or the diagnostic tools required to perform that level of investigation.

    Therefore, I am afraid I cannot reliably confirm the underlying product-level cause further through the forum without risking providing an inaccurate conclusion.

    If you would like Microsoft to investigate the behavior further, especially because it is reproducible across multiple devices, please open a Microsoft support ticket so the appropriate support team can securely collect and analyze the required logs and traces.

    If you believe the behavior was introduced by a Windows or Microsoft product change and would like to report it directly to the product team, you can submit the issue through Feedback Hub, including the reproduction steps and diagnostic data.

    Thank you for your understanding. I hope the steps above help you identify which process is retaining the file handle and provide the information needed for the next level of investigation.

    References:

    Client health checks - Configuration Manager | Microsoft Learn

    Recommended antivirus exclusions for Configuration Manager - Configuration Manager | Microsoft Learn

    Process Explorer - Sysinternals | Microsoft Learn

    Performance analyzer for Microsoft Defender Antivirus - Microsoft Defender for Endpoint | Microsoft Learn

    If you find it useful, please click Accept Answer.

    Thank you for choosing Microsoft Q&A.

    Was this answer helpful?

    0 comments No comments

  2. Gary Gu-ext 10 Reputation points
    2026-11-02T05:53:19.6133333+00:00

    PC client is Win11 .

    Was this answer helpful?

    0 comments No comments

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.