{"id":2591,"date":"2021-12-29T16:26:14","date_gmt":"2021-12-29T16:26:14","guid":{"rendered":"https:\/\/modern-workplace.uk\/?p=2591"},"modified":"2022-01-06T18:24:38","modified_gmt":"2022-01-06T18:24:38","slug":"teams-virtual-sbc-closing-azure-network-ports-warnings-for-azureloadbalancer-and-virtualnetwork-2-2-2-2-3-2-3-2-2-2-2-2-3-2-2-3-2-2","status":"publish","type":"post","link":"https:\/\/modern-workplace.uk\/?p=2591","title":{"rendered":"Microsoft Teams &#8211; Manage User Call Forward and Unanswered Call Settings Using PowerShell &#8211; Set-CsUserCallingSettings"},"content":{"rendered":"\n<p class=\"has-large-font-size\">The latest release of the Microsoft Teams cmdlets module (<span class=\"has-inline-color has-vivid-purple-color\"><strong>MicrosoftTeams 3.0.1-preview<\/strong><\/span>) added functionalities to the <strong><em><span class=\"has-inline-color has-vivid-purple-color\">Set-CsUserCallingSettings <\/span><\/em><\/strong>command, finally allowing Teams administrators to manage users&#8217; forwarding and unanswered calls settings from PowerShell.<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong><span class=\"has-inline-color has-luminous-vivid-orange-color\">Note<\/span><\/strong>: to install the Public Preview of the Microsoft Teams Module use &#8220;<em><strong>Install-Module -Name MicrosoftTeams -AllowPrerelease<\/strong><\/em>&#8220;<\/p>\n\n\n\n<p class=\"has-large-font-size\">The <span class=\"has-inline-color has-black-color\">Set-CsUserCallingSettings<\/span> uses the logic you can see in the diagram below<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/12\/Set-CsUserCallingSettings.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"665\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/12\/Set-CsUserCallingSettings-1024x665.jpg\" alt=\"\" class=\"wp-image-2592\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/12\/Set-CsUserCallingSettings-1024x665.jpg 1024w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/12\/Set-CsUserCallingSettings-300x195.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/12\/Set-CsUserCallingSettings-768x499.jpg 768w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/12\/Set-CsUserCallingSettings.jpg 1048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-large-font-size\">Here are some practical usage examples:<\/p>\n\n\n\n<p class=\"has-large-font-size\">Remove Call Forward for the Teams&#8217; user:<strong> <\/strong><\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong><span class=\"has-inline-color has-vivid-purple-color\">Set-CsUserCallingSettings -Identity username@modern-workplace.uk -IsForwardingEnabled $false<\/span><\/strong><\/p>\n\n\n\n<p class=\"has-large-font-size\">Immediately forward all the calls to a phone number:<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong><span class=\"has-inline-color has-vivid-purple-color\">Set-CsUserCallingSettings -Identity  username@modern-workplace.uk -IsForwardingEnabled $true -ForwardingType immediate -ForwardingTargetType singletarget -ForwardingTarget &#8220;Phone Number&#8221;<\/span><\/strong><\/p>\n\n\n\n<p class=\"has-large-font-size\">Immediately forward all the calls to a Teams user:<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong><span class=\"has-inline-color has-vivid-purple-color\">Set-CsUserCallingSettings -Identity  username@modern-workplace.uk -IsForwardingEnabled $true -ForwardingType immediate -ForwardingTargetType singletarget -ForwardingTarget &#8220;destination_<strong><span class=\"has-inline-color has-vivid-purple-color\">username@modern-workplace.uk<\/span><\/strong>&#8220;<\/span><\/strong><\/p>\n\n\n\n<p class=\"has-large-font-size\">Simultaneously ring user&#8217;s delegates:<\/p>\n\n\n\n<p class=\"has-large-font-size\"><span class=\"has-inline-color has-vivid-purple-color\"><strong>Set-CsUserCallingSettings -Identity<\/strong> <strong>username@modern-workplace.uk -IsForwardingEnabled $true -ForwardingType Simultaneous -ForwardingTargetType MyDelegates<\/strong><\/span><\/p>\n\n\n\n<p class=\"has-large-font-size\">If the call is unanswered (after the call forward process), the -IsUnansweredEnabled must be enabled with the logic in the diagram below<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/12\/UnansweredCalls.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"666\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/12\/UnansweredCalls-1024x666.jpg\" alt=\"\" class=\"wp-image-2593\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/12\/UnansweredCalls-1024x666.jpg 1024w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/12\/UnansweredCalls-300x195.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/12\/UnansweredCalls-768x500.jpg 768w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/12\/UnansweredCalls.jpg 1047w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-large-font-size\">For example, with the following command, you can add a redirection to a phone number if the call is unanswered for 30 seconds<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong><span class=\"has-inline-color has-vivid-purple-color\">Set-CsUserCallingSettings -Identity username@modern-workplace.uk -IsUnansweredEnabled $true -UnansweredDelay 00:00:30 -UnansweredTargetType singleTarget -UnansweredTarget &#8220;telephonenumber&#8221;<\/span><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft Teams &#8211; Manage User Call Forward and Unanswered Call Settings Using PowerShell &#8211; Set-CsUserCallingSettings<br \/>\nThe latest release of the Microsoft Teams cmdlets module (MicrosoftTeams 3.0.1-preview) added functionalities to the Set-CsUserCallingSettings command, finally allowing Teams administrators to manage users&#8217; call forwarding settings from PowerShell.<\/p>\n","protected":false},"author":1,"featured_media":2595,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","twitterCardType":"","cardImageID":0,"cardImage":"","cardTitle":"","cardDesc":"","cardImageAlt":"","cardPlayer":"","cardPlayerWidth":0,"cardPlayerHeight":0,"cardPlayerStream":"","cardPlayerCodec":"","footnotes":""},"categories":[765,753,752,757],"tags":[762,804,759,751,77,755,83],"class_list":["post-2591","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-765","category-microsoft365","category-microsoft-teams","category-office-365","tag-microsoftteams","tag-direct-routing","tag-microsoft-365","tag-microsoft-teams","tag-office-365","tag-teams","tag-voice"],"_links":{"self":[{"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts\/2591","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2591"}],"version-history":[{"count":4,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts\/2591\/revisions"}],"predecessor-version":[{"id":2604,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts\/2591\/revisions\/2604"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/media\/2595"}],"wp:attachment":[{"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}