Powershell ScreenShot

Filip 831 Reputation points
2021-03-13T07:36:37.667+00:00

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

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,322 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andreas Baumgarten 94,196 Reputation points MVP
    2021-03-13T07:55:13.553+00:00

    Hi @Filip ,

    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

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 13,901 Reputation points MVP
    2021-03-13T08:05:04.51+00:00

    HI @Filip

    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.

    0 comments No comments

  2. P2173594 1 Reputation point
    2021-05-22T18:47:52.99+00:00

    How can I take screen of IPconfig\DiskManagement ..etc.

    0 comments No comments