Albus
3/25/2016 - 9:54 PM

RDP Screen Resolution

@echo off
for /f "usebackq delims=" %%i in (^
`@"%SystemRoot%\system32\mshta.exe"
"javascript:try{new ActiveXObject('Scripting.FileSystemObject').GetStandardStream(1).Write(window.screen.width+'x'+window.screen.height)};catch(e){};close();"
^|more`
) do echo %%i