diff --git a/Scripts/Sign.ps1 b/Scripts/Sign.ps1 index 7e52bcf5..fb9800bf 100644 --- a/Scripts/Sign.ps1 +++ b/Scripts/Sign.ps1 @@ -41,6 +41,9 @@ $codeCertificate = Get-ChildItem -Path Cert:\LocalMachine\My | Where-Object -Fil # TimeStampServer specifies the trusted timestamp server that adds a timestamp to script's digital signature # Adding a timestamp ensures that your code will not expire when the signing certificate expires # -Include *.ps1, *.psm1, *.psd1 is obvious, but it's slow + +Get-ChildItem -Path $FolderPath -Recurse -File | Where-Object -FilterScript {$_.Extension -in $ExtensionsToSearchIn} + Get-ChildItem -Path $FolderPath -Recurse -File | Where-Object -FilterScript {$_.Extension -in $ExtensionsToSearchIn} | ForEach-Object -Process { $Parameters = @{ FilePath = $_.FullName