How can I do a screen capture in Windows PowerShell?

前端 未结 5 619
礼貌的吻别
礼貌的吻别 2020-11-28 05:51

How can I capture the screen in Windows PowerShell? I need to be able to save the screen to disk.

5条回答
  •  误落风尘
    2020-11-28 06:24

    Microsoft have a Powershell script available here:

    http://gallery.technet.microsoft.com/scriptcenter/eeff544a-f690-4f6b-a586-11eea6fc5eb8

    I have just tried it on a Windows 7 machine and it to work, using the commandline example provided:

    Take-ScreenShot -screen -file "C:\image.png" -imagetype png 
    

提交回复
热议问题