Update FAQ.md

This commit is contained in:
Markus Fleschutz 2023-08-09 16:11:18 +02:00 committed by GitHub
parent 1c1fc04bce
commit 08396e825a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,20 +20,28 @@ PowerShell FAQ
✔️ **It's fully documented** - see the PowerShell documentation at: https://docs.microsoft.com/en-us/powershell/ ✔️ **It's fully documented** - see the PowerShell documentation at: https://docs.microsoft.com/en-us/powershell/
</details> </details>
<details><summary>How to install PowerShell?</summary> <details><summary>How to install PowerShell on Linux?</summary>
▶️ **On Windows** it's preinstalled, **but** the script execution policy is *restricted* (forbidden) by default! To change this: open the *Windows PowerShell (Administrator)* console and enter: 1. On Linux with Snap support just execute:
```
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.
▶️ **On Linux with Snap support** just execute:
``` ```
$ snap install PowerShell $ snap install PowerShell
$ ln -s /snap/bin/pwsh /usr/bin/pwsh $ ln -s /snap/bin/pwsh /usr/bin/pwsh
``` ```
▶️ **Otherwise on Linux or macOS** visit https://github.com/PowerShell/PowerShell for installation. 2 Otherwise visit https://github.com/PowerShell/PowerShell for installation.
</details>
<details><summary>How to install PowerShell on MacOS?</summary>
Visit https://github.com/PowerShell/PowerShell for installation.
</details>
<details><summary>How to install PowerShell on Windows?</summary>
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.
</details> </details>
<details><summary>How to get the PowerShell scripts?</summary> <details><summary>How to get the PowerShell scripts?</summary>