title: Windows screen bounds with dual monitors
body: <p>I am looking to get the total screen resolution using dual monitors in powershell.</p>
  
  <pre><code>$screen = [System.Windows.Forms.Screen]::PrimaryScreen
  $SCREENWIDTH = [int]$screen.bounds.Size.Width
  $SCREENHEIGHT = [int]$screen.bounds.Size.Height
  </code></pre>
  
  <p>With this I get 1920 X 1200 but the resolution is actually 3840 X 1200. I could just double the resolution, however that wont always work depending on the monitors being used.</p>
  
  <p>I am doing this within powershell studio. The reason for knowing this is because sometimes the program opens up off screen, if it does open off screen, I can move it back to the bottom right hand corner.</p>