mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 04:15:23 +02:00
powershell: refresh page (#7984)
This commit is contained in:
parent
b66a8a728b
commit
289f1ad378
2 changed files with 37 additions and 32 deletions
37
pages/common/powershell.md
Normal file
37
pages/common/powershell.md
Normal file
|
@ -0,0 +1,37 @@
|
|||
# powershell
|
||||
|
||||
> Command-line shell and scripting language designed especially for system administration.
|
||||
> See also: `pwsh`.
|
||||
> More information: <https://docs.microsoft.com/windows-server/administration/windows-commands/powershell>.
|
||||
|
||||
- Start an interactive shell session:
|
||||
|
||||
`powershell`
|
||||
|
||||
- Start an interactive shell session without loading startup configs:
|
||||
|
||||
`powershell -NoProfile`
|
||||
|
||||
- Execute specific commands:
|
||||
|
||||
`powershell -Command "{{echo 'powershell is executed'}}"`
|
||||
|
||||
- Execute a specific script:
|
||||
|
||||
`powershell -File {{path/to/script.ps1}}`
|
||||
|
||||
- Start a session with a specific version of PowerShell:
|
||||
|
||||
`powershell -Version {{version}}`
|
||||
|
||||
- Prevent a shell from exit after running startup commands:
|
||||
|
||||
`powershell -NoExit`
|
||||
|
||||
- Describe the format of data sent to PowerShell:
|
||||
|
||||
`powershell -InputFormat {{Text|XML}}`
|
||||
|
||||
- Determine how an output from PowerShell is formatted:
|
||||
|
||||
`powershell -OutputFormat {{Text|XML}}`
|
|
@ -1,32 +0,0 @@
|
|||
# powershell
|
||||
|
||||
> Command-line shell and scripting language designed especially for system administration.
|
||||
> More information: <https://docs.microsoft.com/windows-server/administration/windows-commands/powershell>.
|
||||
|
||||
- Start a Windows PowerShell session in a Command Prompt window:
|
||||
|
||||
`powershell`
|
||||
|
||||
- Load a specific PowerShell console file:
|
||||
|
||||
`powershell -PSConsoleFile {{path/to/file}}`
|
||||
|
||||
- Start a session with a specified version of PowerShell:
|
||||
|
||||
`powershell -Version {{version}}`
|
||||
|
||||
- Prevent the shell from exit after running startup commands:
|
||||
|
||||
`powershell -NoExit`
|
||||
|
||||
- Describe the format of data sent to PowerShell:
|
||||
|
||||
`powershell -InputFormat {{Text|XML}}`
|
||||
|
||||
- Determine how output from PowerShell is formatted:
|
||||
|
||||
`powershell -OutputFormat {{Text|XML}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`powershell -Help`
|
Loading…
Add table
Reference in a new issue