PowerShell 拿到显卡信息

本文告诉大家如何在PowerShell通过WMI拿到显卡信息在PowerShell可以使用下面代码拿到显卡的信息Get-WmiObjectWin32_VideoController打开PowerShell输入代码可以看到下面内容,当然因为小伙伴的显卡和我不相同,拿到的字符串是不相同__GENUS:2__CLASS:Win32_VideoController__SUPERCLASS:CIM_PCVi...

PowerShell 拿到显卡信息

本文告诉大家如何在 PowerShell 通过 WMI 拿到显卡信息

在 PowerShell 可以使用下面代码拿到显卡的信息

Get-WmiObject Win32_VideoController

打开 PowerShell 输入代码可以看到下面内容,当然因为小伙伴的显卡和我不相同,拿到的字符串是不相同

__GENUS : 2__CLASS : Win32_VideoController__SUPERCLASS  : CIM_PCVideoController__DYNASTY  : CIM_ManagedSystemElement__RELPATH  : Win32_VideoController.DeviceID="VideoController1"__PROPERTY_COUNT : 59__DERIVATION  : {CIM_PCVideoController, CIM_VideoController, CIM_Controller, CIM_LogicalDevice...}__SERVER: lindexi__NAMESPACE: root\cimv2__PATH  : \\lindexi\root\cimv2:Win32_VideoController.DeviceID="VideoController1"AcceleratorCapabilities:AdapterCompatibility: Intel CorporationAdapterDACType: InternalAdapterRAM : 1073741824Availability  : 3CapabilityDescriptions :Caption : Intel(R) HD Graphics 530ColorTableEntries:ConfigManagerErrorCode : 0ConfigManagerUserConfig: FalseCreationClassName: Win32_VideoControllerCurrentBitsPerPixel : 32CurrentHorizontalResolution  : 1920CurrentNumberOfColors  : 4294967296CurrentNumberOfColumns : 0CurrentNumberOfRows : 0CurrentRefreshRate  : 60CurrentScanMode  : 4CurrentVerticalResolution : 1080Description: Intel(R) HD Graphics 530DeviceID: VideoController1DeviceSpecificPens  :DitherType : 0DriverDate : 20181119000000.000000-000DriverVersion : 23.20.16.4973ErrorCleared  :ErrorDescription :ICMIntent  :ICMMethod  :InfFilename: oem16.infInfSection : iSKLD_w10_DSInstallDate:InstalledDisplayDrivers: C:\WINDOWS\System32\DriverStore\FileRepository\igdlh64.inf_amd64_2c92d70c30b8effe\igdumd im64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\igdlh64.inf_amd64_2c92d70c30b8ef fe\igd10iumd64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\igdlh64.inf_amd64_2c92 d70c30b8effe\igd10iumd64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\igdlh64.inf_ amd64_2c92d70c30b8effe\igd12umd64.dllLastErrorCode :MaxMemorySupported  :MaxNumberControlled :MaxRefreshRate: 75MinRefreshRate: 59Monochrome : FalseName : Intel(R) HD Graphics 530NumberOfColorPlanes :NumberOfVideoPages  :PNPDeviceID: PCI\VEN_8086&DEV_1912&SUBSYS_D0001458&REV_06\3&11583659&0&10PowerManagementCapabilities  :PowerManagementSupported  :ProtocolSupported:ReservedSystemPaletteEntries :SpecificationVersion:Status  : OKStatusInfo :SystemCreationClassName: Win32_ComputerSystemSystemName : lindexiSystemPaletteEntries:TimeOfLastReset  :VideoArchitecture: 5VideoMemoryType  : 2VideoMode  :VideoModeDescription: 1920 x 1080 x 4294967296 种颜色VideoProcessor: Intel(R) HD Graphics FamilyPSComputerName: lindexi

如果只需要一些必要的数据,通过 Format-List 拿到特殊的属性

Get-WmiObject Win32_VideoController | Format-List AcceleratorCapabilities,AdapterCompatibility,AdapterDACType,AdapterRAM,Availability,CapabilityDescriptions,Caption,DeviceID,DriverDate,DriverVersion,InstallDate,InstalledDisplayDrivers

运行上面代码会显示比上面少的信息

AcceleratorCapabilities :AdapterCompatibility : Intel CorporationAdapterDACType : InternalAdapterRAM  : 1073741824Availability: 3CapabilityDescriptions  :Caption  : Intel(R) HD Graphics 530DeviceID : VideoController1DriverDate  : 20181119000000.000000-000DriverVersion  : 23.20.16.4973InstallDate :InstalledDisplayDrivers : C:\WINDOWS\System32\DriverStore\FileRepository\igdlh64.inf_amd64_2c92d70c30b8effe\igdumdim64.  dll,C:\WINDOWS\System32\DriverStore\FileRepository\igdlh64.inf_amd64_2c92d70c30b8effe\igd10iu  md64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\igdlh64.inf_amd64_2c92d70c30b8effe\ig  d10iumd64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\igdlh64.inf_amd64_2c92d70c30b8ef  fe\igd12umd64.dll

我搭建了自己的博客 https://blog.lindexi.com/ 欢迎大家访问,里面有很多新的博客。只有在我看到博客写成熟之后才会放在csdn或博客园,但是一旦发布了就不再更新

如果在博客看到有任何不懂的,欢迎交流,我搭建了 dotnet 职业技术学院 欢迎大家加入

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

源文地址:https://www.guoxiongfei.cn/csdn/7645.html