Failover script file types

Status
Not open for further replies.

Twigglett

Free User
Advanced Certified
Joined
May 29, 2019
Messages
6
Reaction score
1
Hi All,

I'm looking to find what types of scripts I can get 3CX to run after failover.
The 2 systems are running Windows Server 2016.

The example scripts that 3CX provide are all .bat files.
Am I able to get 3CX to run a powershell and python scripts or even an executable?

Thanks in advance.
 
Is there something stopping you from trying it? But the answer is yes.
 
run the ps1 file from the batch file.

powershell C:\Users\user\Desktop\ps.ps1

or

Powershell.exe -executionpolicy remotesigned -File c:\Users\user\Desktop\ps.ps1

or
we can use start like call would be used from a batch file, so the batch file keeps going.

start powershell [console]::windowwidth=1; [console]::windowheight=1;" C:\Users\user\Desktop\ps.ps1
 
Thanks guys, I think you've answered my question.
I more or less wanted to know what the limitations are when it comes to executing scripts and what types of scripts I can run.
But as 3cxnub said I can use the batch script to call upon different types of scripts/executables.

Thanks both of you.
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
111,934
Messages
589,821
Members
164,813
Latest member
divdigital