Powershell module to connect to an Interaction Center over ICWS.
Import the Posh-IC module in your script
Import-Module .\lib\Posh-IC.psm1
Then use one of the existing functions
Connect to CIC
$cic = New-ICSession -ComputerName cic.acme.com -User admin -Password '1234'
Use the returned session in your future API calls
Get the session status
Get-ICSessionStatus $cic
Disconnect from CIC
Remove-ICSession $cic
Get a user status
Get-ICUserStatus $cic
Get-ICUserStatus $cic 'agent001'
If a user id is not passed, it will use the currently logged on user
Get all users
Get-ICUsers $cic
Gets a user
Get-ICUser $cic
Get-ICUser $cic -User 'agent001'
If a user id is not passed, it will use the currently logged on user
Create a new user
New-ICUser $cic -User 'agent001'
New-ICUser $cic -User 'agent001' -Password '1234'
New-ICUser $cic -User 'agent001' -Password '1234' -Extension '8001'
If the password ommitted, it will be set to '1234'
Delete a user
Remove-ICUser $cic -User 'agent001'
Get all workgroups
Get-ICWorkgroups $cic
Get Workgroup
Get-ICWorkgroup $cic -Workgroup 'workgroup001'
Create a new workgroup
New-ICWorkgroup $cic -Workgroup 'workgroup001'
New-ICWorkgroup $cic -Workgroup 'workgroup001' -HasQueue true -QueueType 'ACD' -IsActive true
New-ICWorkgroup $cic -Workgroup 'workgroup001' -Extension '9010'
New-ICWorkgroup $cic -Workgroup 'workgroup001' -Extension '9010' -Members @('agent001', 'agent002')
- Default values:
- HasQueue: true
- QueueType: 'ACD'
- IsActive: true
All parameters except WorkgroupIp are optional parameters
Remove a workgroup
Remove-ICWorkgroup $cic -Workgroup 'workgroup001'