I would like to enumerate what drivers have been installed on my Windows machine. So far, I have come across three ways of doing this.
Using the driverquery command:
driverqueryUsing the Get-WindowsDriver commandlet:
Get-WindowsDriver -Online -AllUsing autorunsc.exe from SysInternalsSuite:
autorunsc.exe -a s
However, all three seem to give different outputs. From what I understand, autoruns only gives me the drivers that have been enabled (and autostart services), while driverquery gives me both enabled and disabled drivers. However, Get-WindowsDriver seems to give me way more drivers, and the file paths seem to lead to .inf files instead of .sys files. I have come across this link to try to better understand the difference: https://learn.microsoft.com/en-us/windows-hardware/drivers/install/components-of-a-driver-package, but intuitively it would seem to me that there should be at least as many .sys files as .inf files since each driver package has one .inf file and one .sys file at minimum. I would like to know where is the gap in my understanding of this issue.