Hi,
here is my script
Param( $srvhost=$args[0] )
$msgarray = $srvhost -split(" ") $smsrequest = "https://vast.bezeq.co.il/imsc/interfaces/largeaccount/la3.sms?account=haaretz&user=xxxxx&pass=xxxxxx&from=035892124&to=0507703384&port=0&text=$msgarray[0] $msgarray[4] $msgarray[2] $msgarray[3] $msgarray[4]" Invoke-WebRequest -Method get $smsrequest write-host "2:Error" exit 2
I get the sms correct but it appear three time in each sms
Add comment