![](powershell_black_icon_64x64.png) PowerShell FAQ ===================================================
What is PowerShell? **PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language.**
Why use PowerShell? ✔️ **It's powerful** - fully control your computer ✔️ **It's easy to learn** - see the tutorial at: https://www.guru99.com/powershell-tutorial.html ✔️ **It's cross-platform** - available for Linux, Mac OS and Windows ✔️ **It's open-source and free** - see the Github repository at: https://github.com/PowerShell/PowerShell ✔️ **It's fully documented** - see the PowerShell documentation at: https://docs.microsoft.com/en-us/powershell
How to install PowerShell on Linux? 1. **On Linux with Snap support just execute:** ``` $ snap install PowerShell $ ln -s /snap/bin/pwsh /usr/bin/pwsh ``` 2. **Otherwise, please visit:** https://github.com/PowerShell/PowerShell **and scroll down to: 'Get PowerShell'.**
How to install PowerShell on MacOS? **Please visit:** https://github.com/PowerShell/PowerShell **and scroll down to: 'Get PowerShell'.**
How to install PowerShell on Windows? **Good news:** it's preinstalled, **but** the script execution policy is *restricted* (forbidden) by default! To change this: open the *Windows PowerShell (Administrator)* console and enter: ``` PS> Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser ``` **NOTE:** the group policy object (GPO) settings of your organization might disallow changes. In that case contact your system administrator for help.
How to get the Mega collection of PowerShell scripts? 1. **When using Git, execute in a terminal window:** `> git clone https://github.com/fleschutz/PowerShell` 2. **Otherwise, download and unzip it from:** https://github.com/fleschutz/PowerShell/archive/master.zip
How to execute PowerShell scripts on Windows? 1. **In the Windows desktop:** right-click the script and select: *Execute with PowerShell* 2. **On the command-line:** launch a terminal application (e.g. *Windows Terminal*), then type: `./