mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
pwsh: add page (#6249)
This commit is contained in:
parent
ae695a28b9
commit
7d72acec88
1 changed files with 20 additions and 0 deletions
20
pages/common/pwsh.md
Normal file
20
pages/common/pwsh.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# pwsh
|
||||
|
||||
> PowerShell Core is a cross-platform automation and configuration tool/framework.
|
||||
> More information: <https://docs.microsoft.com/powershell/>.
|
||||
|
||||
- Start an instance of PowerShell:
|
||||
|
||||
`pwsh`
|
||||
|
||||
- Execute a script and then exit:
|
||||
|
||||
`pwsh -File {{path/to/file.ps1}}`
|
||||
|
||||
- Set the execution policy for the current session:
|
||||
|
||||
`pwsh -ExecutionPolicy {{AllSigned|Bypass|Default|RemoteSigned|Restricted|Undefined|Unrestricted}}`
|
||||
|
||||
- Execute a command and then exit:
|
||||
|
||||
`pwsh -Command {{command}}`
|
Loading…
Add table
Reference in a new issue