I was very excited to hear that at VMworld US 2016, Alan Renouf announced that PowerCLI is coming to Mac. No release date has been announced but meanwhile I wanted to see what I could do with Microsoft’s release of PowerShell for Mac.
It must be pointed out that, as Microsoft has released PowerShell as open source, support is going to be limited to non-existent from Microsoft. So tread with care!
Firstly, as PowerShell runs on .Net you will need to download and install .NET Core for Mac. There are some hoops to jump through as you need to use Homebrew to get .Net to work on Mac OS X. The steps though are very clear on the Microsoft site.
Once you have installed the .Net Framework, you need to download and install PowerShell. This can be downloaded from the PowerShell project’s Releases page on GitHub.
Once the .PKG file is downloaded, you can install it…
..and once installed, open up Terminal and install OpenSSL
brew install openssl brew link openssl --force
and type
powershell
Microsoft PowerShell is now installed, and working!
You can now run your PowerShell .ps1 scripts that use the core modules without issue.
Be First to Comment