SOLVED

New-UMCallAnsweringRule parameter value definitions

%3CLINGO-SUB%20id%3D%22lingo-sub-266694%22%20slang%3D%22en-US%22%3ENew-UMCallAnsweringRule%20parameter%20value%20definitions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-266694%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3EI'm%20trying%20to%20is%20create%20a%20new%20call%20answering%20rule%2C%20which%20will%20forward%20all%20calls%20directly%20to%20the%20voicemail%20(no%20options%20presented%20to%20the%20caller)%20when%20they%20call%20after%20hours.%20Obviously%20I%20will%20need%20to%20set%20the%20-TimeOfDay%20and%20-KeyMappings%20parameters%20correctly%20to%20do%20this%2C%20but%20I%20haven't%20been%20able%20to%20find%20any%20documentation%20on%20the%20values%20that%20can%20be%20applied%20to%20these%20parameters.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThrough%20trial%20and%20error%2C%20on%20another%20rule%2C%20I%20found%20that%20the%20-TimeOfDay%20value%20of%20%223%2C32%2C08%3A00%2C17%3A00%22%20will%20apply%20the%20policy%20to%20all%20calls%20arriving%20on%20Friday%20between%208am%20and%205pm.%20I'm%20hoping%20that%20someone%20can%20point%20me%20in%20the%20right%20direction%20for%20what%20values%20in%20this%20parameter%20-%20and%20also%20the%20-KeyMappings%20parameter%20-%20translate%20to%20when%20the%20UMCallAnsweringRule%20cmdlets%20are%20run.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%3C%2FP%3E%3CP%3EHarison%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-266694%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeployment%20%26amp%3B%20Operations%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EVoice%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-269623%22%20slang%3D%22en-US%22%3ERe%3A%20New-UMCallAnsweringRule%20parameter%20value%20definitions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-269623%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3EI%20asked%20this%20question%20in%20the%20social.technet%20forums%20as%20well.%20Received%20a%20very%20good%20answer%2C%20see%20below%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsocial.technet.microsoft.com%2FForums%2Fen-US%2Fbaa1f774-e897-44bd-8a20-0be8d6c71ad7%2Fnumber-codes-for-parameters-when-setting-up-callansweringrules-with-powershell%3Fforum%3Dsfbfr%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsocial.technet.microsoft.com%2FForums%2Fen-US%2Fbaa1f774-e897-44bd-8a20-0be8d6c71ad7%2Fnumber-codes-for-parameters-when-setting-up-callansweringrules-with-powershell%3Fforum%3Dsfbfr%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-267277%22%20slang%3D%22en-US%22%3ERe%3A%20New-UMCallAnsweringRule%20parameter%20value%20definitions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-267277%22%20slang%3D%22en-US%22%3EIf%20you%20look%20at%20the%20documentation%20(docs.microsoft.com)%2C%20you%20will%20find%20examples%20on%20how%20they%20use%20-TimeOfDay.%20Seems%20like%20you%20are%20on%20the%20right%20track.%3CBR%20%2F%3E%3CBR%20%2F%3EBy%20what%20I%20can%20tell%20from%20the%20documentation%2C%20there%20will%20be%20no%20options%20presented%20to%20the%20caller%20if%20you%20don't%20set%20a%20-KeyMappings.%20-KeyMappings%20default%20to%20%24null.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fexchange%2Funified-messaging%2Fnew-umcallansweringrule%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fexchange%2Funified-messaging%2Fnew-umcallansweringrule%3C%2FA%3E%3C%2FLINGO-BODY%3E
Deleted
Not applicable

Hi All,

I'm trying to is create a new call answering rule, which will forward all calls directly to the voicemail (no options presented to the caller) when they call after hours. Obviously I will need to set the -TimeOfDay and -KeyMappings parameters correctly to do this, but I haven't been able to find any documentation on the values that can be applied to these parameters.

 

Through trial and error, on another rule, I found that the -TimeOfDay value of "3,32,08:00,17:00" will apply the policy to all calls arriving on Friday between 8am and 5pm. I'm hoping that someone can point me in the right direction for what values in this parameter - and also the -KeyMappings parameter - translate to when the UMCallAnsweringRule cmdlets are run.

 

Thanks in advance

Harison

2 Replies
If you look at the documentation (docs.microsoft.com), you will find examples on how they use -TimeOfDay. Seems like you are on the right track.

By what I can tell from the documentation, there will be no options presented to the caller if you don't set a -KeyMappings. -KeyMappings default to $null.

https://docs.microsoft.com/en-us/powershell/module/exchange/unified-messaging/new-umcallansweringrul...
Best Response
Solution

Hi all,

I asked this question in the social.technet forums as well. Received a very good answer, see below:

https://social.technet.microsoft.com/Forums/en-US/baa1f774-e897-44bd-8a20-0be8d6c71ad7/number-codes-...