Skip to content

Commit

Permalink
Example for signing all files in a folder
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawKlys committed Feb 19, 2024
1 parent c0c1f25 commit 8e97211
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Examples/Example.SignMultipleFiles.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Import-Module .\PSPublishModule.psd1 -Force

$Folder = "C:\Users\przemyslaw.klys\Downloads\MDE\MDE\2016"

$registerCertificateSplat = @{
LocalStore = 'CurrentUser'
Path = $Folder
Include = @('*.ps1', '*.psd1', '*.psm1', '*.dll', '*.cat')
TimeStampServer = 'http://timestamp.digicert.com'
Thumbprint = '483292C9E317AA13B07BB7A96AE9D1A5ED9E7703'
}

Register-Certificate @registerCertificateSplat -Verbose

0 comments on commit 8e97211

Please sign in to comment.