- Joined
- Jun 5, 2018
- Messages
- 11
- Reaction score
- 4
Add-Type -Path "C:\Program Files\3CX Phone System\Instance1\Bin\3cxpscomcpp2.dll"
[TCX.Configuration.PhoneSystem].GetProperties()

[TCX.Configuration.PhoneSystem]::set_CfgServerHost("127.0.0.1")
[TCX.Configuration.PhoneSystem]::set_CfgServerPort("5485")
[TCX.Configuration.PhoneSystem]::set_CfgServerUser("cfguser_default")
[TCX.Configuration.PhoneSystem]::set_CfgServerPassword("******")
[TCX.Configuration.PhoneSystem]::set_ApplicationName("CallViewer")
$3CX = [TCX.Configuration.PhoneSystem]::get_Root()
$Ext = $Tenant[0].GetExtensions() | where ID -eq 390
$Ext.Lastname = "Doe"
$Ext.Save
$Ext.UserStatus = "Away"
$Ext.Save
I have no experience with running code from PowerShell, but a little experience with Visual Studio.However, the following code does nothing
Code:$Ext.UserStatus = "Away" $Ext.Save
Founded in 2005, when VoIP was an emerging technology, 3CX has gone on to establish itself as a global leader in business communications.