Wednesday 19 October 2016

Mirth Channel Creation with Powershell

Mirth Channel Creation from Powershell

Set-Location 'C:\Mirth Connect'
$ChannelOutput=.\mccommand.exe -a https://localhost:38443 -u username -p password -s "C:\commands.txt"

If($ChannelOutput -like '*successfully*')
{
"Channel created successfully and deplyed"
}
else
{
$_.Exception.Message
}

Commands.txt: 
 import "C:\TestServiceChannel1.xml" Force
channel deploy "Channel_name"


Download the script from Repo



1 comment:

  1. Thanks for sharing. Great post very Informative, also checkout sai creation

    ReplyDelete