PSScripts/Get-Resolution.ps1
2023-12-18 18:01:27 +00:00

5 lines
170 B
PowerShell

# Gets the Screen resolution of a PC
$screenResolution = hostname; Get-WmiObject -Class Win32_DesktopMonitor | Select-Object ScreenWidth,ScreenHeight
$screenResolution