{"id":2409,"date":"2019-03-20T15:13:03","date_gmt":"2019-03-20T14:13:03","guid":{"rendered":"https:\/\/laurentvanacker.com\/?p=2409"},"modified":"2022-05-30T13:52:20","modified_gmt":"2022-05-30T11:52:20","slug":"prendre-des-captures-dcran-via-powershell-take-screenshots-with-powershell","status":"publish","type":"post","link":"https:\/\/laurentvanacker.com\/index.php\/2019\/03\/20\/prendre-des-captures-dcran-via-powershell-take-screenshots-with-powershell\/","title":{"rendered":"Prendre des captures d&rsquo;\u00e9cran via Powershell \/ Take Screenshots with PowerShell"},"content":{"rendered":"<div id=\"fr-FR\"><a href=\"#en-US\">English version<\/a><\/div>\n<p>[MAJ : 27\/06\/2019] Dans le cadre de documentations\/formations je suis souvent amener \u00e0 faire des captures d&rsquo;\u00e9cran afin d&rsquo;appuyer mes propos. Dans le cadre d&rsquo;un sc\u00e9nario complexe est on souvent amen\u00e9 \u00e0 d\u00e9tailler celui-ci en plusieurs \u00e9tapes. Cela n\u00e9cessite donc de prendre plusieurs captures d&rsquo;\u00e9cran via la touche \u00ab\u00a0Impression Ecran\u00a0\u00bb et de les coller dans un logiciel d&rsquo;\u00e9dition d&rsquo;image (depuis le presse papier). Cela peut vite devenir fastidieux. J&rsquo;ai donc d\u00e9cider de cr\u00e9er deux scripts PowerShell qui peuvent aussi bien prendre une unique capture d&rsquo;\u00e9cran que plusieurs pendant une p\u00e9riode de temps \u00e0 intervalle donn\u00e9. Toutes les captures sont stock\u00e9es sur le disque pour une utilisation ult\u00e9rieure. Le <a href=\"https:\/\/github.com\/lavanack\/laurentvanacker.com\/blob\/master\/Windows%20Powershell\/Windows\/Misc\/Get-ScreenShot.ps1\">premier script<\/a> prend une capture de votre ou vos \u00e9crans. Le <a href=\"https:\/\/github.com\/lavanack\/laurentvanacker.com\/blob\/master\/Windows%20Powershell\/Windows\/Misc\/Get-WindowShot.ps1\">second script<\/a> prend une capture de la fen\u00eatre d&rsquo;un processus particulier.<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<div id=\"en-US\"><a href=\"#fr-FR\">Version fran\u00e7aise<\/a><\/div>\n<div><\/div>\n<div>[Updated 06\/27\/2019] As part of documentations \/ training I am often led to take screenshots to support my remarks. In the context of a complex scenario, it is often necessary to detail it in several stages. This requires taking several screenshots via the \u00ab\u00a0Print Screen\u00a0\u00bb button and paste them into an image editing software (from the clipboard). It can quickly become tedious. So I decided to create two PowerShell scripts that can take as much as a single screen capture as many for a given period of time at a given interval. All captures are stored on disk for later use. The <a href=\"https:\/\/github.com\/lavanack\/laurentvanacker.com\/blob\/master\/Windows%20Powershell\/Windows\/Misc\/Get-ScreenShot.ps1\">first script<\/a> takes a screenshot of your screen (s). The <a href=\"https:\/\/github.com\/lavanack\/laurentvanacker.com\/blob\/master\/Windows%20Powershell\/Windows\/Misc\/Get-WindowShot.ps1>second script<\/a> takes a screenshot of the window of a particular process.<\/div>\n<div id=\"gt-c\" class=\"g-section\">\n<div id=\"gt-form-c\">\n<form id=\"gt-form\" action=\"\/\" method=\"post\" name=\"text_form\">\n<div id=\"gt-text-all\">\n<p style=\"text-align: justify;\">Laurent.<\/p>\n<\/div>\n<\/form>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>English version [MAJ : 27\/06\/2019] Dans le cadre de documentations\/formations je suis souvent amener \u00e0 faire des captures d&rsquo;\u00e9cran afin d&rsquo;appuyer mes propos. Dans le [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":2463,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[39],"class_list":["post-2409","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","tag-powershell"],"_links":{"self":[{"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/posts\/2409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/comments?post=2409"}],"version-history":[{"count":43,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/posts\/2409\/revisions"}],"predecessor-version":[{"id":2895,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/posts\/2409\/revisions\/2895"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/media\/2463"}],"wp:attachment":[{"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/media?parent=2409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/categories?post=2409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/tags?post=2409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}