Sunday, April 8, 2018

Skype for Business Online - Additional Emergency Locations in PowerShell


Assigning a phone number to a user in Skype for Business Online requires you to first assign an Emergency Location. The Emergency Location is used for saftety and liability purposes in case someone were to dial an emergency number (ex: 911 in the USA). The location is sent to the PSAP (Public Safety Access Point, i.e. police, firefighter, ambulance, etc) so they can show up to the correct address and provide help.

Take a look at the picture below from my tenant. Notice under 'Dallas,' my address is listed.  Underneath 'Dallas' is my actual apartment number (all addresses blacked out for privacy). Skype for Business Online allows for a parent/child relationship with Emergency Locations. For example, if there are multiple floors in a building, you could create a parent location of 'Minneapolis Office' with each floor of the building as a child item (Floor 1, Floor 2, etc).


While this flexibility is great, it presents problems when assigning Emergency Locations in bulk for new users. Lets say I want to assign 50 users to an additional location listed under 'Dallas' above. I haven't found a good way to bulk assign locations in the admin panel, so I'm going to use PowerShell instead.

The command 'Get-CsOnlineLisCivicAddress' lists all Emergency Locations with one cavaet - it doesn't list any of the 'additional locations'. Why? I have no clue, and frankly, it's kind of annoying. So how do we get the list of additional locations? Here's a command I've found useful:

Get-CsOnlineLisLocation|Where-Object {$_.location -ne $null}|ft description, location

When I run this command on my tenant, here's what I see for my apartment in Dallas:


So, how do I assign additional users to this location? The 'Set-CsOnlineVoiceUser' cmdlet takes a'locationid' object.I can get the'locationid' from the 'Get-CsOnlineLisLocation' cmdlet in our previous step and set the 'location' object to be the location I found running the 'Get-CsOnlineLisLocation' command above:



Now we can use the 'locationid' within the 'Set-CsOnlineVoiceUser' cmdlet to set the Emergency Location for a user to an additonal location listed underneath an Emergency Location:Set-CsOnlineVoiceUser -identity joshc -telphonenumber +19725551212 -location id 87b77092-4945-9824-38ada04012e7


If anyone has found a better way of dealing with 'additional locations' within PowerShell, feel free to leave a comment below.

25 comments:

  1. I thought haven’t read such distinctive material anywhere else on-line.24 hour emergency room

    ReplyDelete
  2. Overnight success is a myth. Small businesses must understand this basic fact. Generally, when a new business starts selling on social media, there is palpable excitement is achieving more than set targeted sales.Socialener

    ReplyDelete
  3. I am extremely delighted in for this web journal. Its a useful subject. It help me all that much to take care of a few issues. Its chance are so awesome and working style so rapid. Skype Offline Installer

    ReplyDelete
  4. The repayment options are easy and flexible, and small business owners can work with the funder to set the method that most suits their requirements.
    bookkeeping chicago

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. I exactly got what you mean, thanks for posting. And, I am too much happy to find this website on the world of Google. dj logo design

    ReplyDelete
  8. Other expenses may also include marketing and advertising, employee related, facilities and equipment, vehicle related expenses, insurance, and tax related expenses.bad credit loans ga

    ReplyDelete
  9. The material and aggregation is excellent and telltale as comfortably. One Stop Online Magazine

    ReplyDelete
  10. When you step away for a moment, you allow yourself the opportunity to recharge and refresh. salesforce consultant

    ReplyDelete
  11. Notwithstanding, in a perfect world you, as the proprietor of the business, ought to have at any rate a large portion of the underlying capital you need. In the event that you are right now in a vocation, you can begin setting aside.book sand online

    ReplyDelete
  12. Thanks for Nice and Informative Post. This article is really contains lot more information about This Topic.  Online Business

    ReplyDelete
  13. hen you're able to walk around in a virtual 3D world, meeting other members of the online dating site. brisbane executive portraits

    ReplyDelete
  14. This is my first time i visit here and I found so many interesting stuff in your blog especially it's discussion, thank you. brisbane corporate headshot photography

    ReplyDelete
  15. Great info! I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have  Affiliate Marketing

    ReplyDelete
  16. Ace4sure is the website that deals in preparation material for the exam for many years. According to my exposure and research, this is the right platform where you can get exact 70-483 Dumps Questions.

    ReplyDelete
  17. The substance is additionally conveyed to the crowd as and when they demand for it. ExcelR Digital Marketing Course in Sydney

    ReplyDelete
  18. Hey there, Can I copy this post image and implement it on my personal web log? telemarketing.direct marketing.lead generation

    ReplyDelete
  19. i angle quite a few stuff and i found that the strengthening of writing to clearifing that precisely hurting to proclaim turned into extraordinarily exceptional for that excuse i'm impressed and ilike to arrive again in compound.. Guest Post

    ReplyDelete
  20. I wanted to thanks for this notable proper to apply!! I really loved all tiny little bit of it. I have you bookmarked your web site to test out the introduced belongings you pronounce. Grayvee Journey

    ReplyDelete
  21. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work... Bolt Posts

    ReplyDelete
  22. This is a really good post this. Truly, a magnificent art is making an article. And you are quite a master at that art. I would tell you to keep on continuing this awesome work of yours Full Service Online Marketing Agency Sydney

    ReplyDelete
  23. Hi, I find reading this article a joy. It is extremely helpful and interesting and very much looking forward to reading more of your work.. Bolt Posts

    ReplyDelete
  24. If there are multiple floors in a building, you could create a parent location of 'Minneapolis Office' with each floor of the building as a child item. משרד יחסי ציבור ברמת גן

    ReplyDelete
  25. When your website or blog goes live for the first time, it is exciting. That is until you realize no one but you and your. Marble Falls Insurance

    ReplyDelete