Jump to content

Powershell ParallelCall Einstellung


Adrian85
 Share


Go to solution Solved by Sebastian Dreier,

Recommended Posts

Guten Tag Zusammen,

Ich finde nicht hereaus wie ich die ParallelCall Einstellung eines Benutzers per Powershell erstellen kann . Sobald diese aktiv ist, kann ich die auch per Powershell ändern, aber nicht erstellen.

Ich muss über 100 User erstellen und dazu für Gewisse ParallelCall aktivieren oder MEM. MEM funktioniert problemlos, Parallel aber nicht.

Ich wäre froh um dringende Hilfe.

Grüsse

Adrian

Link to comment
Share on other sites


  • Most Valued User
  • Solution

Hallo Adrian,

 

ich denke der folgende PowerShell Code sollte die Lösung sein:

# Connect to local SwyxWare via Windows Authentication
Connect-IpPbx

# Get demo user entry
$userEntry = Get-IpPbxUser -UserName Sebastian

# Demo for adding a parallel call number and enable it
$parallelCallEntry = New-Object "ParallelCallEntry"
$parallelCallEntry.Number = "+49123456789"
$userEntry.ParallelCallEntryCollection.Add($parallelCallEntry)
$userEntry.EnableParallelCalls = $true
Update-IpPbxUser -UserEntry $userEntry

Write-Host "Parallel call number added and enabled"
Read-Host "Press a key to proceed..."

# Demo for updating a parallel call number
$userEntry.ParallelCallEntryCollection[0].Number = "+49987654321"
Update-IpPbxUser -UserEntry $userEntry

Write-Host "Parallel call number updated"
Read-Host "Press a key to proceed..."

# Demo for removing a parallel call number and disable it
$userEntry.ParallelCallEntryCollection.RemoveAll()
$userEntry.EnableParallelCalls = $false
Update-IpPbxUser -UserEntry $userEntry

Write-Host "Parallel call number removed and feature disabled"
Read-Host "Press a key to proceed..."

# Cleanup
Disconnect-IpPbx

 

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.