79180273

Date: 2024-11-12 08:11:09
Score: 4
Natty:
Report link

Oh Damn, it seems to be a hard challange.

Add-Type -AssemblyName System.Windows.Forms

[System.Windows.Forms.Screen]::AllScreens | 
  ForEach-Object { '{0} x {1}' -f $_.Bounds.Width, $_.Bounds.Height } 

Show:

PS C:\WINDOWS\System32> Add-Type -AssemblyName System.Windows.Forms

[System.Windows.Forms.Screen]::AllScreens | ForEach-Object { '{0} x {1}' -f $.Bounds.Width, $.Bounds.Height }
2560 x 1600 2880 x 1620

And

$height = (((Get-WmiObject -Class Win32_VideoController).VideoModeDescription  -split '\n')[0]  -split ' ')[2]
$width = (((Get-WmiObject -Class Win32_VideoController).VideoModeDescription  -split '\n')[0]  -split ' ')[0]
echo $width, $height

Show:

$height = (((Get-WmiObject -Class Win32_VideoController).VideoModeDescription -split '\n')[0] -split ' ')1 $width = (((Get-WmiObject -Class Win32_VideoController).VideoModeDescription -split '\n')[0] -split ' ')[0] echo $width, $height 1920 1200

The Real Resolution is: Res_1

and for the Primary: Res_2

in that order:

Placing

@mkelement I'll try the third Party later.

Thanks for help till now. Other ideas?

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @mkelement
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: TheRob87