1 2 3 4 5 | $screen = Get-WmiObject -Namespace "root\cimv2" -Class Win32_VideoController $width = $screen.CurrentHorizontalResolution $height = $screen.CurrentVerticalResolution Write-Host "Resolución de pantalla actual: $width x $height" |
1 2 3 4 5 | $screen = Get-WmiObject -Namespace "root\cimv2" -Class Win32_VideoController $width = $screen.CurrentHorizontalResolution $height = $screen.CurrentVerticalResolution Write-Host "Resolución de pantalla actual: $width x $height" |