- Joined
- Nov 26, 2019
- Messages
- 3
- Reaction score
- 0
I used the info from the below thread @Togadude
https://www.3cx.com/community/threads/3cx-api-with-powershell.56973/
and patched the already coded PSModule from @happy_admin:)
https://www.3cx.com/community/threads/powershell-module-for-3cx.41481/
the below commands are working
, I will be renaming some command and adding a bunch more... please let me know if there is any features you would like included and I will see what I can do
within the scope of "3cxpscomcpp2.dll" the provided API from 3CX themselves.
====================================================
Add-ExtensionGroupMember,
Add-RingGroupMember,
Get-DN,
Get-Extension,
Get-ExtensionGroup,
Get-ExtensionGroupMember,
Get-RingGroup,
Get-RingGroupMember,
New-Extension,
New-ExtensionGroup,
New-RingGroup,
Remove-Extension,
Remove-ExtensionGroup,
Remove-ExtensionGroupMember,
Remove-RingGroup,
Remove-RingGroupMember,
Set-Extension,
Set-ExtensionGroup,
Set-RingGroup
READ ME INCLUDED in the install ZIP
#####################################################
please open your install dir and local the config file:
C:\Program Files\3CX Phone System\Bin\3cxSystemService.exe.config
open "3cxSystemService.exe.config" with a text editor and copy the CfgServer password
copy the 3CXShell.psd1 & 3CXShell.psm1 files to "%Windir%\System32\WindowsPowerShell\v1.0\Modules\3CXShell"
now open 3CXShell.psm1 and update "your password here" on line 7
open PowerShell and run:
import-module 3CXShell
get-help 3CXShell
https://www.3cx.com/community/threads/3cx-api-with-powershell.56973/
and patched the already coded PSModule from @happy_admin:)
https://www.3cx.com/community/threads/powershell-module-for-3cx.41481/
the below commands are working
====================================================
Add-ExtensionGroupMember,
Add-RingGroupMember,
Get-DN,
Get-Extension,
Get-ExtensionGroup,
Get-ExtensionGroupMember,
Get-RingGroup,
Get-RingGroupMember,
New-Extension,
New-ExtensionGroup,
New-RingGroup,
Remove-Extension,
Remove-ExtensionGroup,
Remove-ExtensionGroupMember,
Remove-RingGroup,
Remove-RingGroupMember,
Set-Extension,
Set-ExtensionGroup,
Set-RingGroup
READ ME INCLUDED in the install ZIP
#####################################################
please open your install dir and local the config file:
C:\Program Files\3CX Phone System\Bin\3cxSystemService.exe.config
open "3cxSystemService.exe.config" with a text editor and copy the CfgServer password
copy the 3CXShell.psd1 & 3CXShell.psm1 files to "%Windir%\System32\WindowsPowerShell\v1.0\Modules\3CXShell"
now open 3CXShell.psm1 and update "your password here" on line 7
open PowerShell and run:
import-module 3CXShell
get-help 3CXShell