diff --git a/Docs/FAQ.md b/Docs/FAQ.md index 247b5755..b33bacb0 100644 --- a/Docs/FAQ.md +++ b/Docs/FAQ.md @@ -42,37 +42,34 @@ NOTE: the group policy object (GPO) settings of your organization might disallow * **Otherwise,** download and unzip it from: https://github.com/fleschutz/PowerShell/archive/master.zip -How to execute PowerShell Scripts? ----------------------------------- +
How to execute PowerShell Scripts? + 1. In the Windows desktop: right-click the script and select: *Execute with PowerShell* 2. In a command-line interface (CLI, e.g. *Windows Terminal*, either local or remote via SSH) by typing: `./`. 3. By connecting a context menu item with a script. 4. By voice control, e.g. see repo [talk2windows](https://github.com/fleschutz/talk2windows) for more information. 5. By using automation software, e.g. [Jenkins](https://www.jenkins.io). 6. Automatically on login (see AutoStart folder)/logoff/daily/etc. +
+
What about Security? -What about Security? --------------------- * Execute scripts only that you trust (and/or where you have checked the code before)! * Prefer SSH Remoting instead of PowerShell Remoting * More recommendations by NSA and cyber security centers in the U.S. (CISA), New Zealand (NZ NCSC), and the U.K. (NCSC-UK) can be found here: https://media.defense.gov/2022/Jun/22/2003021689/-1/-1/1/CSI_KEEPING_POWERSHELL_SECURITY_MEASURES_TO_USE_AND_EMBRACE_20220622.PDF +
- -Why do some scripts show gibberish characters? ----------------------------------------------- +
Why do some scripts show gibberish characters? Those PowerShell scripts are using Unicode characters. Use a modern console supporting UTF-8 such as *Windows Terminal*, please. +
- -How to set PowerShell as favorite shell on Linux? -------------------------------------------------- +
How to set PowerShell as favorite shell on Linux? Make sure PowerShell is installed, then execute: `chsh -s /usr/bin/pwsh `. In case you experience an "invalid shell" error, add "/usr/bin/pwsh" to /etc/shells. +
- -How to install a custom PowerShell profile? -------------------------------------------- +
How to install a custom PowerShell profile? Execute: `./set-profile.ps1` in the *Scripts* subfolder, this will install **my-profile.ps1** as your PowerShell profile. It's a nice looking base profile, but can easily be changed to your needs. - +
How to add the scripts to the search path? ------------------------------------------