diff --git a/certy.ps1 b/certy.ps1 index cd0805f..44ea542 100644 --- a/certy.ps1 +++ b/certy.ps1 @@ -262,7 +262,7 @@ function Invoke-Replication { Invoke-Command -ComputerName $server -ScriptBlock { param($c) & $env:ComSpec /c $c } -ArgumentList $remoteCmd | ForEach-Object { & $Log $_ } } catch { - & $Log "Replication error on $server: $($_.Exception.Message)" + & $Log ("Replication error on {0}: {1}" -f $server, $_.Exception.Message) } continue }