{"id":86133,"date":"2019-07-24T15:00:20","date_gmt":"2019-07-24T23:00:20","guid":{"rendered":"http:\/\/devblogs.microsoft.com\/scripting\/?p=86133"},"modified":"2019-10-29T06:52:25","modified_gmt":"2019-10-29T14:52:25","slug":"powertip-show-files-with-expired-digital-certificates","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powertip-show-files-with-expired-digital-certificates\/","title":{"rendered":"PowerTip: Show files with expired Digital Certificates"},"content":{"rendered":"<p><strong>Summary<\/strong>: Targeting Expired Certificates with Get-AuthenticodeSignature<\/p>\n<p><img decoding=\"async\" width=\"34\" height=\"34\" class=\"wp-image-86134\" src=\"http:\/\/devblogs.microsoft.com\/scripting\/wp-content\/uploads\/sites\/29\/2019\/07\/a-picture-containing-scissors-description-automat.jpeg\" alt=\"A picture containing scissors Description automatically generated\" \/><\/p>\n<p>Question: Hey Doctor Scripto! Is there an easy way to visually identify Digitally signed files with an Expired status on the Digital Certificate?<\/p>\n<p><img decoding=\"async\" width=\"34\" height=\"34\" class=\"wp-image-86135\" src=\"http:\/\/devblogs.microsoft.com\/scripting\/wp-content\/uploads\/sites\/29\/2019\/07\/word-image.jpeg\" \/><\/p>\n<p>Answer: Absolutely! We just need to filter on the \u201cStatus\u201d property and show those without the value \u2018Valid\u2019. As an added bonus it would also identify files that are not digitally signed.<\/p>\n<p>Get-Childitem C:\\Folder\\*.* -Recurse | Get-AuthenticodeSignature | Where-Object { $_.Status -ne &#8216;Valid&#8217; }<\/p>\n<p><img decoding=\"async\" width=\"96\" height=\"145\" class=\"wp-image-86136\" src=\"http:\/\/devblogs.microsoft.com\/scripting\/wp-content\/uploads\/sites\/29\/2019\/07\/word-image-19.png\" \/><\/p>\n<p>PowerShell, Doctor Scripto, PowerTip<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Targeting Expired Certificates with Get-AuthenticodeSignature Question: Hey Doctor Scripto! Is there an easy way to visually identify Digitally signed files with an Expired status on the Digital Certificate? Answer: Absolutely! We just need to filter on the \u201cStatus\u201d property and show those without the value \u2018Valid\u2019. As an added bonus it would also identify [&hellip;]<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1739,1738],"tags":[646,1740,377,154],"class_list":["post-86133","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-doctor-scripto","category-powershell","tag-certificate","tag-doctor-scripto","tag-powershell","tag-sean-kearney"],"acf":[],"blog_post_summary":"<p>Summary: Targeting Expired Certificates with Get-AuthenticodeSignature Question: Hey Doctor Scripto! Is there an easy way to visually identify Digitally signed files with an Expired status on the Digital Certificate? Answer: Absolutely! We just need to filter on the \u201cStatus\u201d property and show those without the value \u2018Valid\u2019. As an added bonus it would also identify [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/86133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=86133"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/86133\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=86133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=86133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=86133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}