From 8e97211d5e086779e72fe89aef4b57e4274433ed Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Mon, 19 Feb 2024 22:09:14 +0100 Subject: [PATCH] Example for signing all files in a folder --- Examples/Example.SignMultipleFiles.ps1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Examples/Example.SignMultipleFiles.ps1 diff --git a/Examples/Example.SignMultipleFiles.ps1 b/Examples/Example.SignMultipleFiles.ps1 new file mode 100644 index 0000000..6a2c2b8 --- /dev/null +++ b/Examples/Example.SignMultipleFiles.ps1 @@ -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 \ No newline at end of file