Page 2 of 2

Re: Monitor for mssql HA (always on)

Posted: Tue Sep 19, 2017 3:50 pm
by cdienger
Try editing the batch file and at the top put @echo off.

Re: Monitor for mssql HA (always on)

Posted: Wed Sep 27, 2017 3:13 am
by s.wiki
Hi ,
Thanks guy i have solved this by not using batch script and use the powershell command instead.

Code: Select all

test-sqlavailabilitygroup=cmd /c echo scripts\custom\Test-SqlAvailabilityGroup.ps1; exit($lastexitcode) | powershell.exe -command 
Thanks anyway,kindly close the ticket