PSScripts/Get-Resolution.ps1

5 lines
170 B
PowerShell
Raw Normal View History

2023-12-18 18:01:27 +00:00
# Gets the Screen resolution of a PC
$screenResolution = hostname; Get-WmiObject -Class Win32_DesktopMonitor | Select-Object ScreenWidth,ScreenHeight
$screenResolution