Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deangrant/8511fb0addce4eb21de6 to your computer and use it in GitHub Desktop.
Save deangrant/8511fb0addce4eb21de6 to your computer and use it in GitHub Desktop.
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