Powershell ScreenShot

Filip 831 Reputation points

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.
4,892 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andreas Baumgarten 68,306 Reputation points MVP

    Hi @Filip ,

    Maybe some of these links are helpful:



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

    Andreas Baumgarten

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 12,806 Reputation points MVP

    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

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

    0 comments No comments