Forum Discussion
Jesterize
Sep 26, 2022Copper Contributor
Change the gender of an existing Auto Attendant
Is there a way to switch the gender of an existing Auto Attendant? Looking at the Get-CSAutoAttendant, it shows that the VoiceID is set to Male. The client would like it to be female. Looked at Set-C...
DWFL1
Brass Contributor
PS C:\temp\Scripts> $autoAttendant=Get-CsAutoAttendant
PS C:\temp\Scripts> $autoAttendant.voiceid = "Female"
The property 'voiceid' cannot be found on this object. Verify that the property exists and can be set.
At line:1 char:1
+ $autoAttendant.voiceid = "Female"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyAssignmentException
PS C:\temp\Scripts> $autoAttendant.voiceid
Female
Male
It does accept this below but the set-csautoattendant command also fails:
PS C:\temp\Scripts> $autoAttendant.voiceid.Female
PS C:\temp\Scripts> Set-CsAutoAttendant -Instance $autoAttendant
Set-CsAutoAttendant : Cannot process argument transformation on parameter 'Identity'. Cannot convert value to type
System.String.
At C:\Program Files\WindowsPowerShell\Modules\MicrosoftTeams\4.7.0\custom\Merged_custom_PsExt.ps1:7240 char:94
+ ... igAPI.Cmdlets.internal\Set-CsAutoAttendant @PSBoundParameters @httpPi ...
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Set-CsAutoAttendant], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-CsAutoAttendant
PS C:\temp\Scripts> $autoAttendant.voiceid = "Female"
The property 'voiceid' cannot be found on this object. Verify that the property exists and can be set.
At line:1 char:1
+ $autoAttendant.voiceid = "Female"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyAssignmentException
PS C:\temp\Scripts> $autoAttendant.voiceid
Female
Male
It does accept this below but the set-csautoattendant command also fails:
PS C:\temp\Scripts> $autoAttendant.voiceid.Female
PS C:\temp\Scripts> Set-CsAutoAttendant -Instance $autoAttendant
Set-CsAutoAttendant : Cannot process argument transformation on parameter 'Identity'. Cannot convert value to type
System.String.
At C:\Program Files\WindowsPowerShell\Modules\MicrosoftTeams\4.7.0\custom\Merged_custom_PsExt.ps1:7240 char:94
+ ... igAPI.Cmdlets.internal\Set-CsAutoAttendant @PSBoundParameters @httpPi ...
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Set-CsAutoAttendant], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-CsAutoAttendant
Nov 05, 2022
What are the properties/settings of the current $autoAttendant ?