What it is
A PowerShell script that reads the Microsoft Places directory with the Places PowerShell module and prints its hierarchy as an indented text tree. You can include each place's PlaceId, start from a specific ancestor such as one building or floor, and save the output to a file.
Why use it
- See the full Places structure of a tenant at a glance instead of browsing it object by object.
- Add each place's PlaceId to the output when you need to reference specific places.
- Start from any building, floor, or other place with
-AncestorIdto focus on one part of the hierarchy.
How to use it
- Install the Places PowerShell module and connect to the Places service.
- Run the script. Add
-IncludePlaceIdto show IDs,-AncestorIdto start from one place, or-OutputFileNameto save the output (the script appends.htmlunless the name already ends in.htmlor.htm):
.\Export-SimplePlacesVisual.ps1 -IncludePlaceIdPrerequisites
- Places PowerShell module installed and an authenticated Places session