locked
cannot find path 'c:\program files\windows defender\symsrv.dll' RRS feed

  • Question

  • When I run get-windowsupdatelog,I got the following error:cannot find path 'c:\program files\windows defender\symsrv.dll'. How can I get it in server 2016?
    Thursday, September 14, 2017 8:28 AM

Answers

  • Hi xionger,

    >>C:\Program Files \Windows Defender\SymSrv.dll

    The SymSrv.dll file should be a part of Windows Defender, if your server has some third-party security software or Windows Defender has been disabled or damaged, this file is missing or ineffective, then the error message appears.

    Please try to copy the DLL from any other Windows 10/Server 2016 machine (or search through the “C:\Windows\WinSxS\” folder on the same machine and copy it from there) to “C:\Program Files\Windows Defender” and enable Windows Defender feature.

    For more details, please refer the the following link:

    Get-WindowsUpdateLog searches for SymSrv.dll in x86 

    https://social.technet.microsoft.com/Forums/windows/en-US/afb91349-ed87-49a0-a88f-b8ae66482668/getwindowsupdatelog-searches-for-symsrvdll-in-x86?forum=win10itprogeneral

    For your reference:

    Get-WindowsUpdateLog SymSrv.dll error

    https://rakhesh.com/windows/get-windowsupdatelog-symsrv-dll-error/

    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    Best Regards,

    Candy


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Marked as answer by xionger Sunday, September 17, 2017 1:19 PM
    Thursday, September 14, 2017 10:10 AM
  • Hi,

    Please use the 64-Bit Powershell Version (Windows Powershell) and not the 32-Bit Version "Windows Powershell (x86)"

    ------------------------------------------------------------------------------------------------------------
    If you found this post helpful, please give it a "Helpful" vote. 
    Please remember to mark the replies as answers if they help.

    nedimmehic.org

    • Marked as answer by xionger Sunday, September 17, 2017 1:19 PM
    Thursday, September 14, 2017 9:12 AM

All replies

  • Hi,

    Please use the 64-Bit Powershell Version (Windows Powershell) and not the 32-Bit Version "Windows Powershell (x86)"

    ------------------------------------------------------------------------------------------------------------
    If you found this post helpful, please give it a "Helpful" vote. 
    Please remember to mark the replies as answers if they help.

    nedimmehic.org

    • Marked as answer by xionger Sunday, September 17, 2017 1:19 PM
    Thursday, September 14, 2017 9:12 AM
  • Hi xionger,

    >>C:\Program Files \Windows Defender\SymSrv.dll

    The SymSrv.dll file should be a part of Windows Defender, if your server has some third-party security software or Windows Defender has been disabled or damaged, this file is missing or ineffective, then the error message appears.

    Please try to copy the DLL from any other Windows 10/Server 2016 machine (or search through the “C:\Windows\WinSxS\” folder on the same machine and copy it from there) to “C:\Program Files\Windows Defender” and enable Windows Defender feature.

    For more details, please refer the the following link:

    Get-WindowsUpdateLog searches for SymSrv.dll in x86 

    https://social.technet.microsoft.com/Forums/windows/en-US/afb91349-ed87-49a0-a88f-b8ae66482668/getwindowsupdatelog-searches-for-symsrvdll-in-x86?forum=win10itprogeneral

    For your reference:

    Get-WindowsUpdateLog SymSrv.dll error

    https://rakhesh.com/windows/get-windowsupdatelog-symsrv-dll-error/

    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    Best Regards,

    Candy


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Marked as answer by xionger Sunday, September 17, 2017 1:19 PM
    Thursday, September 14, 2017 10:10 AM
  • I uninstalled Windows Defender:

    PS:\> Remove-WindowsFeature Windows-Defender-Features

    <reboot>

    PS:\> Get-WindowsUpdateLog

    Copy-Item : Cannot find path 'C:\Program Files\Windows Defender\SymSrv.dll' because it does not exist.
    At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\WindowsUpdate\WindowsUpdateLog.psm1:56 char:5
    +     Copy-Item -Path $SYMSRV_DLL_PATH -Destination $WORKDIR -Force -Er ...
    +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (C:\Program File...nder\SymSrv.dll:String) [Copy-Item], ItemNotFoundException
        + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

    Yes, it's a bug. Instead of fixing it like good little Microsoft employees, they decided it wasn't needed. I just don't get Microsoft these days. Can't seem to fix anything.

    PS:\> copy C:\Windows\WinSxS\amd64_windows-defender-service-cloudclean_31bf3856ad364e35_10.0.14393.0_none_b031e2b988aef036\SymSrv.dll "c:\Program Files\Windows Defender"

    PS:\> Get-WindowsUpdateLog

    Yay it works now. Except for one problem. The only line in the log file is :

      "Checking Write Access"...

    Onto the next bug...


    • Edited by Brain2000 Sunday, January 20, 2019 12:28 AM
    • Proposed as answer by Brain2000 Sunday, January 20, 2019 12:28 AM
    Sunday, January 20, 2019 12:14 AM