%3CLINGO-SUB%20id%3D%22lingo-sub-472191%22%20slang%3D%22en-US%22%3EInstall%20PowerShell%20on%20macOS%20and%20Linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-472191%22%20slang%3D%22en-US%22%3E%3CP%20style%3D%22margin%3A%200in%3B%20margin-bottom%3A%20.0001pt%3B%22%3EDid%20you%20know%20you%20can%20run%20PowerShell%20on%20macOS%20and%20Linux%20based%20operating%20systems%3F%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20margin-bottom%3A%20.0001pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20margin-bottom%3A%20.0001pt%3B%22%3EJust%20wanted%20to%20pass%20this%20on%20in%20case%20you%20did%20not%20know...%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20margin-bottom%3A%20.0001pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20margin-bottom%3A%20.0001pt%3B%22%3EFor%20the%20macOS%E2%80%A6%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20margin-bottom%3A%20.0001pt%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fpowershell%252Fscripting%252Finstall%252Finstalling-powershell-core-on-macos%253Fview%253Dpowershell-6%26amp%3Bdata%3D02%257C01%257CCraig.Marcho%2540microsoft.com%257C4352f5464f164891097208d6c402f909%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C636911914560974256%26amp%3Bsdata%3DDQgw2Q0RQc2haH0tBvE0%252FUU%252Ff2YHpWgjRUwLuIoLTvw%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fscripting%2Finstall%2Finstalling-powershell-core-on-macos%3Fview%3Dpowershell-6%3C%2FA%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20margin-bottom%3A%20.0001pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20margin-bottom%3A%20.0001pt%3B%22%3Efor%20Linux%E2%80%A6%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20margin-bottom%3A%20.0001pt%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fpowershell%252Fscripting%252Finstall%252Finstalling-powershell-core-on-linux%253Fview%253Dpowershell-6%26amp%3Bdata%3D02%257C01%257CCraig.Marcho%2540microsoft.com%257C4352f5464f164891097208d6c402f909%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C636911914560974256%26amp%3Bsdata%3DCrCeh95Jz3mbxDNA7J7g%252BRmWt3e3WKyv37E%252Fuek5AjE%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fscripting%2Finstall%2Finstalling-powershell-core-on-linux%3Fview%3Dpowershell-6%3C%2FA%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20margin-bottom%3A%20.0001pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20margin-bottom%3A%20.0001pt%3B%22%3ENow%20you%20know!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-472191%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23ffffff%3B%20color%3A%20%23333333%3B%20cursor%3A%20text%3B%20font-family%3A%20inherit%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.7142%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3EDid%20you%20know%20you%20can%20run%20PowerShell%20on%20macOS%20and%20Linux%20based%20operating%20systems%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-SUB%20id%3D%22lingo-sub-486018%22%20slang%3D%22en-US%22%3ERe%3A%20Install%20PowerShell%20on%20macOS%20and%20Linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-486018%22%20slang%3D%22en-US%22%3E%3CP%3ENice%20post%20Marcho!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-782387%22%20slang%3D%22en-US%22%3ERe%3A%20Install%20PowerShell%20on%20macOS%20and%20Linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-782387%22%20slang%3D%22en-US%22%3E%3CP%3EAwesome!%20glad%20to%20know.%20I%20wish%20we%20could%20run%20CentOS%20on%20Hyper-V%20and%20really%20have%20fun%20with%20this.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1549794%22%20slang%3D%22en-US%22%3ERe%3A%20Install%20PowerShell%20on%20macOS%20and%20Linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1549794%22%20slang%3D%22en-US%22%3E%3CP%3EDear%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F301777%22%20target%3D%22_blank%22%3E%40CraigMarcho%3C%2FA%3E%26nbsp%3B%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20really%20trying%20to%20get%20some%20help%2C%20I%20hope%20you%20have%20time%20to%20react!%20First%20of%20all%2C%20thank%20you%20for%20your%20post%2C%20really%20good%20to%20point%20out%20that%20powerShell%20is%20accessible%20on%20a%20Mac%20too!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYet%20...%20I%20am%20trying%20for%20many%20days%20now%20to%20get%20things%20done%20with%20PowerShell%20on%20a%20Mac.%3C%2FP%3E%3CP%3EInstallation%20of%20HomeBrew%20and%20PowerShell%20(7)%20is%20not%20a%20problem.%20I%20can%20also%20add%20modules%2C%20e.g.%20to%20work%20with%20Teams.%26nbsp%3B%3C%2FP%3E%3CP%3EInstallation%20of%20the%20SPO%20module%20does%20not%20work%2C%20there%20is%20no%20cmdlet%20connect-SPO*.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20also%20need%20to%20be%20able%20to%20connect%20to%20Azure%20in%20order%20to%20convert%20an%26nbsp%3B%3CSPAN%3EOffice%20365%20group%20to%20a%20security%20enabled%20group.%20For%20that%2C%20I%20tried%20to%20install%20the%20PowerShell%20AzureAD%20module.%20Installation%20seems%20to%20succeed%2C%20but%20nothing%20is%20installed.%20I%20also%20tried%20another%20approach%3A%20using%20the%20powershell%20terminal%20within%20the%20Azure%20portal.%20What%20should%20I%20do%20to%20have%20access%20to%20these%20services%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

Did you know you can run PowerShell on macOS and Linux based operating systems?

 

Just wanted to pass this on in case you did not know...

 

For the macOS…

https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-macos?vi...

 

for Linux…

https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?vi...

 

Now you know!

3 Comments
Occasional Visitor

Nice post Marcho!

New Contributor

Awesome! glad to know. I wish we could run CentOS on Hyper-V and really have fun with this. 

New Contributor

Dear @CraigMarcho , 

 

I am really trying to get some help, I hope you have time to react! First of all, thank you for your post, really good to point out that powerShell is accessible on a Mac too!

 

Yet ... I am trying for many days now to get things done with PowerShell on a Mac.

Installation of HomeBrew and PowerShell (7) is not a problem. I can also add modules, e.g. to work with Teams. 

Installation of the SPO module does not work, there is no cmdlet connect-SPO*. 

 

I would also need to be able to connect to Azure in order to convert an Office 365 group to a security enabled group. For that, I tried to install the PowerShell AzureAD module. Installation seems to succeed, but nothing is installed. I also tried another approach: using the powershell terminal within the Azure portal. What should I do to have access to these services?