Home » Questions » Computers [ Ask a new question ]

Windows screen shots via command-line SSH session

Windows screen shots via command-line SSH session

I've browsed the handful of "screen capture" queries here, but I was unable to find anything which addressed my specific need.

Asked by: Guest | Views: 338
Total answers/comments: 2
Guest [Entry]

"The following method to capture remote Windows desktop via ssh login worked for me.
Tools needed:

miniCap
paexec.exe OR psexec.exe
Windows machine runs OpenSSH server

Transfer psexec.exe/paexec.exe, miniCap to the Windows machine.

Login to windows machine: PUTTY.EXE admin@10.0.0.38
Execute on the remote machine:

paexec.exe \\10.0.0.38 -i -d -s <path_to_program>\MiniCap.exe -nofocus -capturedesktop -save ""screen_$appname$_$date$_$uniquenum$.jpg"" -closeapp -exit"
Guest [Entry]

"Try one of the following commands.

$ import -pause 1 -window root screenshot.jpg

$ xwd -out screenshot.xwd -window root
or
$ xwd -out screenshot.xwd -window root -display :0.0

And this for extracting the xwd-file:

$ xwud -in screenshot.xwd
or
$ convert screenshot.xwd screenshot.jpg

Source:
http://ubuntuforumsdotorg/showthread.php?t=107580"