If you need to determine the horizontal and vertical video resolution of the
system you are working on from a command-line interface (CLI) on a Microsoft
Windows systeem, you can open a
PowerShell window
(you can type PowerShell
in the Windows "search" field and
click on PowerShell when you see it in the returned results) and
issue the
Windows Management Instrumentation Command-line (WMIC) command
Get-WmiObject win32_videocontroller | select caption, CurrentHorizontalResolution, CurrentVerticalResolution
.
PS C:\> Get-WmiObject win32_videocontroller | select caption, CurrentHorizontalResolution, CurrentVerticalResolution caption CurrentHorizontalResolution CurrentVerticalResolution ------- --------------------------- ------------------------- NVIDIA Quadro K2000 2560 1440 PS C:\>
If you need to determine the resolution on another system in the same
Windows domain on
the local area network (LAN), you can add -ComputerName
followed
by the name of the computer to the command as shown below.
PS C:\> Get-WmiObject -ComputerName apollo win32_videocontroller | select caption, CurrentHorizontalResolution, CurrentVerticalResolution caption CurrentHorizontalResolution CurrentVerticalResolution ------- --------------------------- ------------------------- Microsoft Basic Display Adapter 1024 768 PS C:\>
If you are connected to a remote system via the Remote Desktop Protocol and issue a wmic command to check the resolution, you will see two values for the horizontal and vertical resolutions. On the first line, you will see the resolution for the RDP connection and on the second line you will see the resolution a remote user would see while sitting at the system. In the examples below, the first time I issued the wmic command was after I connected via RDP from a system where the video resolution was 2560 x 1440 and I had the Display setting for the RDP connecton set to "large," which equated to 2560 x 1440. The second time I issued the wmic command was after I had disconnected from the remote system and then reconnected from the same system but with the display set to 1680 x 1050 pixels.
C:\>wmic path win32_VideoController get CurrentHorizontalResolution,CurrentVerticalResolution CurrentHorizontalResolution CurrentVerticalResolution 2560 1440 1920 1080 C:\>wmic path win32_VideoController get CurrentHorizontalResolution,CurrentVerticalResolution CurrentHorizontalResolution CurrentVerticalResolution 1680 1050 1920 1080 C:\>
You can adjust the resolution for the RDP connection by clicking on the Display tab for the RDP window and moving the slider for the "Choose the size of your remote desktop" setting. E.g., the setting for 1680 x 1050 above.