PowerShell PowerShell $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" 12345 $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"