Have installed the necessary module?
Get-Module -Name Microsoft.Online.SharePoint.PowerShell -ListAvailable | Select Name,Version
If you can't locate the module, try installing it:
Install-Module -Name Microsoft.Online.SharePoint.PowerShell
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am trying to run Connect-SPOService Command using PowerShell in Mac. But its giv
Can anyone please advise?
thanks
Jijesh Peter
Have installed the necessary module?
Get-Module -Name Microsoft.Online.SharePoint.PowerShell -ListAvailable | Select Name,Version
If you can't locate the module, try installing it:
Install-Module -Name Microsoft.Online.SharePoint.PowerShell
Hi @Jijesh Peter,
Thank you for posting in this community.
According to your detailed description, I do understand how frustrated you are now.
However, I feel regretful to inform you that SharePoint Online Management Shell does not yet work from a Mac. The reason is that SharePoint Online Management Shell is a Windows PowerShell module.
Reference: Intro to SharePoint Online Management Shell
Perhaps you could try using PnP PowerShell to connect to SharePoint Online.
However, to use PnP PowerShell on a Mac, you need to install Homebrew first, then PowerShell, and finally PnP PowerShell.
Here are the exact steps to follow: 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.
Here are some cmdlets on how to use PnP PowerShell to manage SharePoint Online: How to Connect to SharePoint Online using PnP PowerShell?
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.
We apologize for any inconvenience this may cause. Thank you for your kind understanding!
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.