question

Filip-2434 avatar image
0 Votes"
Filip-2434 asked ·

Powershell ScreenShot

Hello Everybody.
Can somebody recommend me some easy code, how can I make screenshot in powerhsell?
Thanks for answare.

windows-server-powershell
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered ·

Hi @Filip-2434,

Maybe some of these links are helpful:

https://stackoverflow.com/questions/2969321/how-can-i-do-a-screen-capture-in-windows-powershell
https://www.pdq.com/blog/capturing-screenshots-with-powershell-and-net/
http://woshub.com/take-user-desktop-screenshot-with-powershell/


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

learn2skills avatar image
0 Votes"
learn2skills answered ·

HI @Filip-2434

Thank You for posting in Q & A.

This PowerShell function will capture the screen in PowerShell and save it to an automatically numbered file. If the -OfWindow switch is used, then the current window will be captured.
This works by using the built in PRINTSCREEN / CTRL-PRINTSCREEEN tricks, and it uses a bitmap encoder to save the file to disk.
refer - How can I do a screen capture in Windows PowerShell.

Please don’t forget to Accept the answer and up-vote wherever the information provided helps you, this can be beneficial to other community members.


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.