How to install SharePoint Online Management Shell on Mac?

hahahacheong 1 Reputation point
2021-12-28T00:31:37.787+00:00

Does anyone tell me how to install the SharePoint Online Management Shell to Mac?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,003 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,862 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Emily Du-MSFT 43,176 Reputation points Microsoft Vendor
    2021-12-28T03:11:34.107+00:00

    @hahahacheong

    1. To install SharePoint Online Management Shell, you need to install Homebrew first. It is a package manager which is used for installing packages that are missing in macOS.
    2. Install PowerShell.

    You could follow below articles to install SharePoint Online Management Shell on Mac.

    https://www.365expert.co.uk/how-to-install-exchange-online-powershell-modules-on-macos/
    https://www.c-sharpcorner.com/article/how-to-run-pnp-powershell-in-macos/

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Thomas Weiss 0 Reputation points
    2023-02-13T21:45:56.73+00:00

    SharePoint Online Management Shell does not yet work from a Mac, due to missing libraries. You will need a windows installation to use it. From my Powershell 7 installation:

    Get-Module -Name Microsoft.Online.SharePoint.PowerShell -ListAvailable | Select Name,Version
    
    Name                                   Version
    ----                                   -------
    Microsoft.Online.SharePoint.PowerShell 16.0.23311.12000
    
    Connect-SPOService -Url https://TENANTNAME-admin.sharepoint.com
    Connect-SPOService: The type initializer for 'Microsoft.Win32.Registry' threw an exception.
    
    

    PnP Powershell works. Most things can be done by PnP Powershell, though it is not supported by MS offficially.

    0 comments No comments