本文告诉大家如何通过 WMI 获取用户已经安装的驱动程序
通过下面代码可以获取用户已经安装的驱动程序
Get-WmiObject Win32_SystemDriver | Format-List Caption,Name,State
运行代码
Caption : Windows Driver Foundation - User-mode Driver Framework ReflectorName : WUDFRdState : Running
Caption : WPD 文件系统驱动程序Name : WUDFWpdFsState : Running
Caption : XINPUT HID 筛选器驱动程序Name : xinputhidState : Stopped
驱动的内容很多,我就不全部放在代码
如果需要通过 PowerShell 获取系统安装的驱动的日期和安装的路径,请加上 InstallDate 驱动日期 PathName 请看代码
Get-WmiObject Win32_SystemDriver | Format-List Caption,Name,State,InstallDate,PathName
Win32_SystemDriver class - Windows applications

本作品采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可。 欢迎转载、使用、重新发布,但务必保留文章署名 林德熙 (包含链接: https://blog.lindexi.com ),不得用于商业目的,基于本文修改后的作品务必以相同的许可发布。如有任何疑问,请与我 联系。