Get-MgBookingBusiness

What is Get-MgBookingBusiness?

The Get-MgBookingBusiness cmdlet in Microsoft Graph PowerShell retrieves information about Microsoft Bookings businesses configured within your organization. Each business represents a scheduling entity that manages services, staff, and customer appointments through Microsoft Bookings.


Why Use Get-MgBookingBusiness?

Administrators use this cmdlet to automate the retrieval of Bookings data such as business names, contact details, creation dates, and configurations. It helps in:

  • Auditing Bookings businesses across the tenant.
  • Generating reports on all booking sites in use.
  • Filtering or exporting business data for administrative review or integration with other systems.

This cmdlet is especially valuable for organizations with multiple departments using Bookings.


Prerequisites

Before using the cmdlet, install the Microsoft Graph module and connect with the proper permissions:

Install-Module Microsoft.Graph -Scope CurrentUser
Connect-MgGraph -Scopes "Bookings.Read.All"

How to Use Get-MgBookingBusiness?

Use the following syntax to retrieve booking business information:

Get-MgBookingBusiness [-BookingBusinessId <String>]

If no ID is specified, the cmdlet returns a list of all booking businesses in the tenant.


Get-MgBookingBusiness Examples

  • Example 1: Retrieve All Booking Businesses
  • This command retrieves all booking businesses available in your Microsoft 365 tenant.

    Get-MgBookingBusiness -All
  • Example 2: Retrieve a Single Booking Business by ID
  • To get detailed information about a specific booking business, use its unique BookingBusinessId.

    Get-MgBookingBusiness -BookingBusinessId "business-id"
  • Example 3: Retrieve Booking Businesses Using a Filter
  • You can apply filters to narrow down the results, such as fetching only recently created booking businesses.

    Get-MgBookingBusiness -Filter "createdDateTime ge 2024-01-01"

Summary

Key Point Details
Cmdlet Name Get-MgBookingBusiness
Purpose Retrieves details of Microsoft Bookings businesses
Required Scope Bookings.Read.All
Primary Parameter BookingBusinessId, Filter
Automation Benefit Enables admins to audit and report on booking sites efficiently
Use Case Centralized monitoring of all Microsoft Bookings entities in a tenant

Did You Know? Managing Microsoft 365 applications is even easier with automation. Try our Graph PowerShell scripts to automate tasks like generating reports, cleaning up inactive Teams, or assigning licenses efficiently.

Ready to get the most out of Microsoft 365 tools? Explore our free Microsoft 365 administration tools to simplify your administrative tasks and boost productivity.

© Your Site Name. All Rights Reserved. Design by HTML Codex