Dmitry Nefedov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
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 |
|
|
|