SOLVED

How to install macOS version of Windows PowerShell?

%3CLINGO-SUB%20id%3D%22lingo-sub-1560828%22%20slang%3D%22en-US%22%3EHow%20to%20install%20macOS%20version%20of%20Windows%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1560828%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20am%20looking%20for%20Windows%20PowerShell%20for%20Mac%20rather%20than%20PowerShell%20Core%20(v6%2B)%2C%20is%20it%20something%20available%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1560828%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMac%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Microsoft

Hi,

 

I am looking for Windows PowerShell for Mac rather than PowerShell Core (v6+), is it something available?

 

Thanks!

2 Replies
Highlighted
Nope, that's why we have Core... You can always spin up a Windows VM if you need it that bad :)
Highlighted
Best Response confirmed by Steve_Zhou_zzc (Microsoft)
Solution

Hi @Steve_Zhou_zzc,

 

Windows PowerShell was written exclusively for Windows OS and it is based on .NET Framework that is not portable to other operating systems.

 

PowerShell Core (6.x) is on the other hand based on .NET Core that is cross-platform, so available on MacOS as well.

 

Instructions on how to install PowerShell 7 on MacOS: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-macos?vi...

 

I am on Windows 10 and I have been using PS 6.x for a long time. I can't recall when I needed to use Windows PowerShell, since the majority of standard modules have been ported to .NET Core already.

 

In case you need to use some PS module that is not available for PowerShell 7 (Core), you can either run a Windows VM or you could try with PowerShell remoting (either explicit or implicit).