Get-CsVoiceFlow – Shows Voice Policy, PSTN Usages, Routes, and Trunks

In some organisations, it can be a complex task to create a sensible and resilient Enterprise Voice configuration, and it can be difficult when working on new environment’s and seeing their configuration for the first time.

Wouldn’t it be good if you could quickly show the flow from any particular Voice Policy to Gateway in one place?

Here’s a little script I put together, it’s easy to use, just run the script and it will show all the Voice Policies, or specify a Voice Policy directly, or a User, and it will show their assigned Voice Policy, and includes PSTN Usages for SimRing/Call Forwarding if specified.


Please excuse the quickly thrown together configuration, I just chucked something in my lab to use as an example.

Example 1: Specify a single Voice Policy…

Example 2: Specify a user to retrieve Voice Policy from…

Example 3: Or just show all Voice Policies…



Get-CsVoiceFlow – Version 1.1

  • Version 1.0 – First release
  • Version 1.1 – Seemed like v1.0 only worked in PowerShell ISE, I had to move the Function to the top and now it’s OK. (Thanks to @greiginsydney for spotting that).

Unzip and run from a PowerShell prompt.

And obviously – This Script is provided β€˜as is’ without warranty of any kind.

The Script

Yeah I know, I used Write-Host, I’m sorry but I couldn’t resist the lure of coloured output, just change to Write-Output if you need to send to a file for later.




Tweet about this on TwitterShare on LinkedInShare on Facebook
Pin on PinterestShare on Google+Digg thisShare on RedditShare on StumbleUponEmail this to someone

About Graham Cropley

Working as a Senior Consultant for Skype for Business, Exchange, and Office 365.

One Comment

  1. Thanks for sharing πŸ™‚

Leave a Reply

Your email address will not be published. Required fields are marked *