Created
November 7, 2015 14:41
-
-
Save deangrant/8511fb0addce4eb21de6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process | |
{ | |
Try | |
{ | |
# Retrieves and adds the content of each certificate from the specified location to a concatenated certificate container file. | |
ForEach ($Certificate in $Certificates) | |
{ | |
Get-Content $Certificate | Add-Content $Output | |
} | |
} # Try | |
Catch | |
{ | |
Write-Host ("The creation of the concatenated certificate container file failed with the following exception message: " + $Error[0].Exception.Message) -ForegroundColor Red | |
Break | |
} # Catch | |
} # Process |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment