Is there a way to find out what hardware is using a .sys file?


  1. Posts : 868
    Windows 10 x64
       #1

    Is there a way to find out what hardware is using a .sys file?


    I would like to know if it is possible to check what hardware or software is using a specific .sys file.
    Is there some tool that can do that?

    Thanks.
      My Computer


  2. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #2

    Hello @tfwul,

    If you are talking about having problems at startup, this may help with trouble-shooting the issue:

     Autoruns for Windows

    Autoruns allows you to Disable problem Startup items and MORE.

    About Autoruns:

    This utility, which has the most comprehensive knowledge of auto-starting locations of any startup monitor, shows you what programs are configured to run during system bootup or login, and when you start various built-in Windows applications like Internet Explorer, Explorer and media players. These programs and drivers include ones in your startup folder, Run, RunOnce, and other Registry keys. Autoruns reports Explorer shell extensions, toolbars, browser helper objects, Winlogon notifications, auto-start services, and much more. Autoruns goes way beyond other autostart utilities.

    Autoruns' Hide Signed Microsoft Entries option helps you to zoom in on third-party auto-starting images that have been added to your system and it has support for looking at the auto-starting images configured for other accounts configured on a system. Also included in the download package is a command-line equivalent that can output in CSV format, Autorunsc.

    > Autoruns for Windows - Information - Docs.Microsoft
    > Autoruns for Windows - Direct Download - SysInternals
    > Advanced Autoruns Tutorial - How to Disable Programs that Start with Windows - Video Tutorial - OS Attack

    Just for additional information purposes, Autoruns is basically an Advanced System Tool capable of MANY different actions. This video is well worth a watch to familiarise yourself with the tasks available . . .

    > Advanced Autoruns Tutorial - How to Disable Programs that Start with Windows



    I hope this helps.
      My Computer


  3. Posts : 43,029
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #3

    You could start by looking at this properties sheet:
    Is there a way to find out what hardware is using a .sys file?-1.jpg
      My Computers


  4. Posts : 868
    Windows 10 x64
    Thread Starter
       #4

    I was having problems with external USB drives (WD). They are solved for 99%, by removing a specific driver.
    Now there is still one driver that I am not sure of : WDCSAM64.SYS


    Hence, before proceeding, I'd like to know whether this file is in use by ... whatever.

    Haven't found the right tool though, Process Explorer, lockhunter, they did not work.

    Thanks!
      My Computer


  5. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #5

    Hello @tfwul,

    tfwul said:
    I was having problems with external USB drives (WD). They are solved for 99%, by removing a specific driver.

    Now there is still one driver that I am not sure of : WDCSAM64.SYS
    That driver is associated with WD External Storage developed by Western Digital Technologies.

    Have a look at this > How to Fix the Wdcsam64.sys Memory Integrity Error on Win11/10

    I hope this helps.
      My Computer


  6. Posts : 43,029
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #6

    And thank you so much for your reply.

    You can rt click a .sys file- or any appropriate file- to see what's using it e.g. with LockSmith installed. There are other 3rd party utilities that provide that kind of context menu.

    However I feel you may be disappointed as it's likely only in use very briefly.

    If you wished to capture it being accessed and used, you can try the huge filterable log provided by Process Monitor (procmon) from MS- free.

    I also think you're asking the wrong question or have the wrong expectation. A driver is loaded into RAM as needed.. sys files don't execute in the way that exe files do - so you won't see them listed as such by task manager type tools.
      My Computers


  7. Posts : 868
    Windows 10 x64
    Thread Starter
       #7

    Thanks again. I have been removing some 'conflicting' drivers recently. They resulted in many, many Eventlog errors.

    See: Unending EventViewer Error 507: failed non-ReadWrite SCSI SRB request

    Now these errors are almost entirely gone for , maybe a few times per day only. So, actually I was trying to figure out what was left on my PC that -may-... cause these few errors. These errors are caused by external WD drives. Since all drivers are gone, there shouldn't be any errors, not a single one.

    There was 1 WD file left, so I was curious to find out whether this file could be the reason.

    That is the only background. I was hoping there would be a quick way to figure out whether this file is related to the few eventlog errors.

    Procmon: not sure whether it can cover .sys files. Is it not only .exe files?
    Anyway, this is only explaining the background.

    @dalchina - I let it rest. I -thought- there might be an easy trick, but since there is not, it isn't worth spending more time on it.

    Thank you for your replies!
      My Computer


  8. Posts : 1,777
    Windows 10 Pro (+ Windows 10 Home VMs for testing)
       #8

    tfwul said:
    Procmon: not sure whether it can cover .sys files. Is it not only .exe files?
    ProcMon can monitor/filter on the use of any file, not just executable files.
      My Computer


  9. Posts : 2,926
    Windows 10 Pro for the Bro
       #9

    LockHunter should show you if that file is being used by the USB device.

    I made a new text file in this empty USB device that I use LockHunter on. I opened the text file in Notepad, and it shows that notepad.exe is in use:

    Is there a way to find out what hardware is using a .sys file?-image.png


    And this is on my external drive (the red colored one):
    Is there a way to find out what hardware is using a .sys file?-image.png

    If "WDCSAM64.SYS" isn't in that list, then it shouldn't be in use by the Drive / USB Device.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:28.
Find Us




Windows 10 Forums