Get Screen resolution using WMI/powershell in Windows 7

后端 未结 6 630
温柔的废话
温柔的废话 2020-11-30 02:15

I am using the following script to get screen resolution in Windows using WMI. The script works fine when the computer is in landscape mode but returns incorrect values when

6条回答
  •  心在旅途
    2020-11-30 02:45

    Same as the other answers, however for the plain cmd:

    wmic path Win32_VideoController get VideoModeDescription

提交回复
热议问题