Teams Powershell: Create and configure Auto Attendant

Jurgen Verhelst 331 Reputation points
2021-02-12T16:59:11.573+00:00

Dear All,

I am looking for a way to create but more importantly configure an Auto Attendant via powershell.

I need to create a dozen of them all with out of office hours. and that is a tedious job doing manually

Now I do know skype online has 10+ cmdlets but am trying to find a way to export an existing AA setup, alter it, and create new ones from that.

is that possible?

67399-schermafbeelding-2021-02-12-174804.png

also, I tried a few of the cmdlets in this article but they do not seem to all work for teams. (tenant is already migrated to teams)

create-a-phone-system-auto-attendant

If there is no export function, has anybody tried to set a AA with the following commands?

New-CsAutoAttendant  
Set-CsAutoAttendant  
Get-CsAutoAttendant  
Get-CsAutoAttendantHolidays  
Remove-CsAutoAttendant  
New-CsAutoAttendantMenu  
New-CsOnlineAudioFile  
New-CsAutoAttendantCallFlow  
Export-CsAutoAttendantHolidays  
New-CsOnlineTimeRange  
New-CsOnlineDateTimeRange  
New-CsOnlineSchedule  
Get-CsAutoAttendantSupportedTimeZone  
New-CsAutoAttendantCallHandlingAssociation  
Get-CsAutoAttendantSupportedLanguage  
Import-CsAutoAttendantHolidays  
New-CsAutoAttendantCallableEntity  
  
Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. JimmyYang-MSFT 58,641 Reputation points Microsoft External Staff
    2021-02-15T08:28:19.867+00:00

    Hi @Jurgen Verhelst ,

    You can find all AutoAttendant commands available by doing a search using the Get-Command cmdlet.

    68113-11.png

    The following ideas are for your reference:

    --You use the New verb to create a new AA or CQ
    --The Set verb to change or add something to an existing AA or CQ
    --You use Get to see what’s already been created
    --And Remove to get rid of one
    --Import and Export are only related to Holidays
    --Update is used to force an update of resources associated with an AA. Currently, it repairs the Dial-by----Name recognition status of an auto attendant.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Jurgen Verhelst 331 Reputation points
    2021-02-20T08:54:30.977+00:00

    Well its really a challenge to find all the cmdlets to make a whole AA from scratch.

    I was hoping someone already did a whole AA setup via powershell I could look at. Do you have any example scripts at microsoft to do this?


  3. Matt Gifford 1 Reputation point
    2021-06-16T20:24:58.517+00:00

    anonymous user - I may have gotten the totally wrong idea here, but I've been using variations on the AA creation script on https://learn.microsoft.com/en-us/powershell/module/skype/new-csautoattendant?view=skype-ps#examples with great success, it works in the new teams modules and is pretty customizable..

    As I say, I may have misunderstood, but that's let me script deployments of 80+ AA's..

    Cheers,

    Giff


  4. Jurgen Verhelst 331 Reputation points
    2021-06-17T09:44:14.647+00:00

    Hi, @Matt Gifford ,

    Yes I can do a lot of things with it except setting a menu option to external cell number (24/7 cell phone number ie)

    For the rest it is pretty customizable


  5. Robert Gibson 1 Reputation point
    2022-03-13T00:26:13.607+00:00

    I have successfully decoded the configuration details of Skype for Business RGS and Queues that is 9/10ths of the issue in migration to Teams It is not in any way simple or intuitive. In the coming week I intend to semi-automate migration of RGS to Teams Auto Attendants and Call Queue using the commands listed above...stay posted.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.