05 April 2017

Get screen resolutions and positions using PowerShell

To get screen resolutions and positions using powershell, you can use this oneliner:

Add-Type -A System.Windows.Forms;[System.Windows.Forms.Screen]::AllScreens|ft *d*

In my example I have this screen layout:

image

The output in my case is like this:

image