ドライバの一覧を表示するサンプルコードです。
driverquery
サンプル:
c:\>driverquery
モジュール名 表示名 ドライバーの リンク日時
============ ====================== ============= ======================
1394ohci 1394 OHCI Compliant Ho Kernel 2088/10/30 3:20:44
3ware 3ware Kernel 2015/05/19 7:28:03
ACPI Microsoft ACPI Driver Kernel 2098/12/10 22:09:50
AcpiDev ACPI デバイス ドライバ Kernel 2025/01/26 16:33:56
acpiex Microsoft ACPIEx Drive Kernel 2046/04/18 14:33:55
acpipagr ACPI プロセッサ アグリ Kernel 2080/03/08 22:26:48
AcpiPmi ACPI 電源メーター ドラ Kernel 2069/12/08 18:37:31
acpitime ACPI ウェイク アラーム Kernel 2024/05/25 4:08:47
ADP80XX ADP80XX Kernel 2015/04/10 5:49:48
AFD Ancillary Function Dri Kernel 2062/09/13 20:37:16
ahcache Application Compatibil Kernel 2084/12/29 1:34:53
AmdK8 AMD K8 Processor Drive Kernel 2004/10/14 10:37:11
AmdPPM AMD Processor Driver Kernel 2089/10/18 9:52:51
以下省略
コマンド:
wmic SYSDRIVER get /value
実行例:
C:\>wmic SYSDRIVER get /value
AcceptPause=FALSE
AcceptStop=FALSE
Caption=1394 OHCI Compliant Host Controller
CreationClassName=Win32_SystemDriver
Description=1394 OHCI Compliant Host Controller
DesktopInteract=FALSE
DisplayName=1394 OHCI Compliant Host Controller
ErrorControl=Normal
ExitCode=1077
InstallDate=
Name=1394ohci
PathName=C:\Windows\system32\drivers\1394ohci.sys
ServiceSpecificExitCode=0
ServiceType=Kernel Driver
Started=FALSE
StartMode=Manual
StartName=
State=Stopped
Status=OK
SystemCreationClassName=Win32_ComputerSystem
SystemName=PCNAME
TagId=0
AcceptPause=FALSE
AcceptStop=FALSE
Caption=3ware
CreationClassName=Win32_SystemDriver
Description=3ware
DesktopInteract=FALSE
DisplayName=3ware
ErrorControl=Normal
ExitCode=1077
InstallDate=
Name=3ware
PathName=C:\Windows\system32\drivers\3ware.sys
ServiceSpecificExitCode=0
ServiceType=Kernel Driver
Started=FALSE
StartMode=Manual
StartName=
State=Stopped
Status=OK
SystemCreationClassName=Win32_ComputerSystem
SystemName=PCNAME
TagId=1
AcceptPause=FALSE
AcceptStop=TRUE
Caption=Microsoft ACPI Driver
CreationClassName=Win32_SystemDriver
以下省略
Get-WmiObject -query "Select * from Win32_PnPSignedDriver"
サンプル:
__GENUS : 2
__CLASS : Win32_PnPSignedDriver
__SUPERCLASS : CIM_Service
__DYNASTY : CIM_ManagedSystemElement
__RELPATH :
__PROPERTY_COUNT : 28
__DERIVATION : {CIM_Service, CIM_LogicalElement, CIM_ManagedSystemElement}
__SERVER : PCNAME
__NAMESPACE : root\cimv2
__PATH :
Caption :
ClassGuid : {1ed2bbf9-11f0-4084-b21f-ad83a8e6dcdc}
CompatID : GenPrintQueue
CreationClassName :
Description : Local Print Queue
DeviceClass : PRINTQUEUE
DeviceID : SWD\PRINTENUM\{A896995C-A4E8-42DF-95BB-6B0E5ECC1EA9}
DeviceName : Local Print Queue
DevLoader :
DriverDate : 20060621000000.******+***
DriverName :
DriverProviderName : Microsoft
DriverVersion : 10.0.16299.15
FriendlyName : Microsoft Print to PDF
HardWareID : PRINTENUM\{084f01fa-e634-4d77-83ee-074817c03581}
以下省略