1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-25 02:35:28 +02:00
tldr/pages/common/pwsh.md
Emily Grace Seville 101aa05c65
pwsh: refresh page (#7983)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-01-30 18:00:42 +01:00

592 B

pwsh

PowerShell Core is a cross-platform automation and configuration tool/framework. See also: powershell. More information: https://learn.microsoft.com/powershell/.

  • Start an interactive shell session:

pwsh

  • Start an interactive shell session without loading startup configs:

pwsh -NoProfile

  • Execute specific commands:

pwsh -Command "{{string}}"

  • Execute a specific script:

pwsh {{path/to/script.ps1}}

  • Start an interactive shell session with a specific execution policy:

pwsh -ExecutionPolicy {{AllSigned|Bypass|Default|RemoteSigned|Restricted|...}}