{"id":386,"date":"2008-02-25T07:38:24","date_gmt":"2008-02-25T15:38:24","guid":{"rendered":"http:\/\/www.sapien.com\/blog\/2008\/02\/25\/how-do-i-sign-a-windows-powershell-script\/"},"modified":"2008-02-25T07:38:24","modified_gmt":"2008-02-25T15:38:24","slug":"how-do-i-sign-a-windows-powershell-script","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2008\/02\/25\/how-do-i-sign-a-windows-powershell-script\/","title":{"rendered":"How do I sign a Windows PowerShell script?"},"content":{"rendered":"<p>&nbsp;&quot;Boz&quot; sent this one in, and it&#8217;s a doozy. I have two places for you to look: First is at&nbsp;h<a href=\"http:\/\/www.scriptinganswers.com\/essentials\/index.php\/2008\/02\/21\/how-do-i-sign-a-windows-powershell-script\/\">ttp:\/\/www.scriptinganswers.com\/essentials\/index.php\/2008\/02\/21\/how-do-i-sign-a-windows-powershell-script\/<\/a>, which describes the process I used to sign a script for a new self-paced training video that should be out in March 2008.&nbsp;<\/p>\n<p>The other is in Microsoft TechNet Magazine, where I wrote an article about this. Visit&nbsp;<a href=\"http:\/\/www.microsoft.com\/technet\/technetmag\/default.aspx\">http:\/\/www.microsoft.com\/technet\/technetmag\/default.aspx <\/a>and look for the March 2008 issue when it&#8217;s available.&nbsp;<\/p>\n<p>The short answer: Buy (or acquire) a Class III code-signing certificate of the Microsoft Authenticode variety, and use the Set-AuthenticodeSignature cmdlet to sign your script. Not too difficult, although getting your certificate in the proper format may require some perambulations.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;&quot;Boz&quot; sent this one in, and it&#8217;s a doozy. I have two places for you to look: First is at&nbsp;http:\/\/www.scriptinganswers.com\/essentials\/index.php\/2008\/02\/21\/how-do-i-sign-a-windows-powershell-script\/, which describes the process I used to sign a script for a new self-paced training video that should be out in March 2008.&nbsp; The other is in Microsoft TechNet Magazine, where I wrote an article [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[27,25],"tags":[92,28,91,93],"class_list":["post-386","post","type-post","status-publish","format-standard","hentry","category-ask-the-experts","category-windows-powershell","tag-certificate","tag-powershell","tag-sign","tag-signature"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=386"}],"version-history":[{"count":0,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/386\/revisions"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}