question

ez-Jurgen avatar image
0 Votes"
ez-Jurgen asked RobertGibson-9690 answered

Teams Powershell: Create and configure Auto Attendant

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


office-teams-windows-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JimmyYang-MSFT avatar image
0 Votes"
JimmyYang-MSFT answered JimmyYang-MSFT commented

Hi @ez-Jurgen,

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.




11.png (199.3 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JurgenVerhelst-1030 avatar image
0 Votes"
JurgenVerhelst-1030 answered JimmyYang-MSFT commented

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?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JurgenVerhelst-1030

At present, we did not find such scripts for it. I will do more investigation about it.

0 Votes 0 ·
MattGifford-4772 avatar image
0 Votes"
MattGifford-4772 answered

@JurgenVerhelst-1030 - I may have gotten the totally wrong idea here, but I've been using variations on the AA creation script on https://docs.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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ez-Jurgen avatar image
0 Votes"
ez-Jurgen answered

Hi, @MattGifford-4772 ,

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 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RobertGibson-9690 avatar image
0 Votes"
RobertGibson-9690 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.