Defining Powershell

PowerShell is a configuration management framework and also a task automation from Microsoft which consists of a command-line shell and associated scripting language built on the .NET Framework and .NET Core. On 18 August 2016 PowerShell was made open-source and a cross-platform. Powershell supports automation of batch processing and creates system management tools. It includes 130 and more standard command line tools for functions and enables the administrators to perform tasks on local as well as remote Windows systems through access to Component Object Model (COM) and Windows Management Instrumentation (WMI).

Protect Your Data with BDRSuite

Cost-Effective Backup Solution for VMs, Servers, Endpoints, Cloud VMs & SaaS applications. Supports On-Premise, Remote, Hybrid and Cloud Backup, including Disaster Recovery, Ransomware Defense & more!

Powershell supports both Ubuntu and Mac users and it is available as an open source. PowerShell on Windows, Linux and MacOS now provides its users with a single management stack to manage all their workloads irrespective of the environment. Now we will be discussing about how to install PowerShell on Ubuntu 16.04 and Mac OS Sierra 10.12.4.

Install PowerShell in Ubuntu 16.04

  • Update packages via terminal
  • Sudo apt-get update
  • Powershell installation requires two more Debian package dependencies.
    libunwind8: library to determine the call-chain of a program – runtime
    libicu55: International Components for Unicode
  • To install dependency run this command
  • Sudo apt-get install -y libunwind8 libicu55
  • Two ways to install PowerShell in Ubuntu 16.04
    i) Download the appropriate package from Release page on Github
    [https://github.com/PowerShell/PowerShell/releases/] and download it.
    ii) Download PowerShell package via terminal using this command.
  • Wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.9/powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb
    chmod +x powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb

    ubuntu-16.04

    http-request

    Download Banner
  • After downloading package, install PowerShell using
  • sudo dpkg -i powershell_6.0.0-alpha.18-1ubuntu1.16.04.1_amd64.deb

    unselected-package-powershell

  • Powershell installation is completed and ready to use
  • To open PowerShell via terminal, just type a single word PowerShell
  • Powershell-virtual-machine

  • Now the powershell window is opened and ready to use
  • To get available module list from PowerShell,
  • Get-Module -ListAvailable
  • The available module is listed
  • get-model-last-avaliable

Install PowerShell in Mac OS Sierra 10.12.4

  • Download PKG package
  • If working with default settings, we receive an installation error
  • To resolve it, open System Preferences->Security & Privacy-> click Open anyway
  • Now able to open Powershell installation wizard and then start installation
  • Click Continue to process the installation
  • powershell-guide

  • An alert notification is visible to see
  • Enter login credential and Click Install Software button and click Install to process
  • Install-Powershell

  • Click Install to perform the Standard installation
  • insallation-type

  • Powershell installation completed successfully
  • Powershell

  • Using terminal start powershell

Conclusion

Powershell package is free and it is easy to download with minimal system Requirements. Powershell is a free utility and is easy to manage across all platforms.