Changes with export and import

Export the displayed user objects with associated properties to a CSV file:

Get-XpUsers | Select-Object -Property AccountName,TelephoneNumber | Export-Csv C:\cf.csv

You will receive a file with your account name and telephone number:

"AccountName","TelephoneNumber"
"Eve.1@ucserver.local","+4989840798120"
"Christin.1@ucserver.local","+4989840798121"
"basti@ucserver.local","+4989840798122"
"Jonas.1@ucserver.local","+4989840798123"
"Daniel.1@ucserver.local","+4989840798124"

Modify the file as follows:

"AccountName","Destination"
"Eve.1@ucserver.local","+4940123456"
"Christin.1@ucserver.local","+4940123456"
"basti@ucserver.local","+4940123456"
"Jonas.1@ucserver.local","+49306666666"
"Daniel.1@ucserver.local","+4940123456"

Instead of your own telephone number, a forwarding destination is to be configured as Fallback scenario for Softphone/AnyDevice per user. The import is carried out via Powershell as follows:

Import-Csv c:\cf.csv | ForEach-Object {
    $dest = $_.Destination;
    Get-XpLineForwardData -ForwardMode 'NoAnswer' -UserNames $_.AccountName | foreach{$_.NoAnswerDelaySeconds = 30; $_.NoAnswerTargetInternal = 'forward'; $_.NoAnswerTargetInternalCallNumber = $dest; $_.NoAnswerTargetExternal = 'off';$_} | Set-XpLineForwardData
}

Have you found a mistake on this page?

Or is something not formulated well or too vague? Then we look forward to receiving an e-mail, preferably with a suggestion for improvement, to doku@c4b.de. Thank you very much!