mirror of https://github.com/CrimsonTome/tldr.git
powershell, pwsh: update page (#11497)
parent
8f1ca06f30
commit
aef7830806
|
@ -1,37 +1,17 @@
|
||||||
# powershell
|
# powershell
|
||||||
|
|
||||||
> Command-line shell en scripting taal specifiek ontworpen voor systeemadministratie.
|
> Dit commando kan verward worden met de cross-platform versie van PowerShell (vroeger bekend als PowerShell Core), welke gebruik maakt van `pwsh` in plaats van `powershell`.
|
||||||
> Zie ook: `pwsh`.
|
> Het originele `powershell` commando in Windows is nog steeds beschikbaar om gebruik te maken van de legacy Windows versie van PowerShell (versie 5.1 en lager).
|
||||||
> Meer informatie: <https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_pwsh>.
|
> Meer informatie: <https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_pwsh>.
|
||||||
|
|
||||||
- Start een interactieve shell sessie:
|
- Bekijk de documenatie voor het commando dat refereert naar de laatste, cross-platform versie van PowerShell (versie 6 en hoger):
|
||||||
|
|
||||||
`powershell`
|
`tldr pwsh`
|
||||||
|
|
||||||
- Start een interactieve shell sessie zonder het laden van startup configuraties:
|
- Bekijk de documenatie voor het commando dat refereert naar de legacy Windows PowerShell (versie 5.1 en lager):
|
||||||
|
|
||||||
`powershell -NoProfile`
|
`tldr powershell -p windows`
|
||||||
|
|
||||||
- Voer specifieke commando's uit:
|
- Bekijk de documenatie voor het commando dat refereert naar de legacy Windows PowerShell in oudere versies van de `tldr` command-line client:
|
||||||
|
|
||||||
`powershell -Command "{{echo 'powershell is uitgevoerd'}}"`
|
`tldr powershell -o windows`
|
||||||
|
|
||||||
- Voer een specifiek script uit:
|
|
||||||
|
|
||||||
`powershell -File {{pad/naar/script.ps1}}`
|
|
||||||
|
|
||||||
- Start een sessie met een specifieke versie van PowerShell:
|
|
||||||
|
|
||||||
`powershell -Version {{versie}}`
|
|
||||||
|
|
||||||
- Voorkom dat een shell uitgaat na het uitvoeren van startup commando's:
|
|
||||||
|
|
||||||
`powershell -NoExit`
|
|
||||||
|
|
||||||
- Beschrijf het formaat van gegevens die naar PowerShell zijn verzonden:
|
|
||||||
|
|
||||||
`powershell -InputFormat {{Text|XML}}`
|
|
||||||
|
|
||||||
- Bepaal hoe een output van PowerShell wordt opgemaakt:
|
|
||||||
|
|
||||||
`powershell -OutputFormat {{Text|XML}}`
|
|
||||||
|
|
|
@ -1,8 +1,38 @@
|
||||||
# pwsh
|
# pwsh
|
||||||
|
|
||||||
> Dit commando is een alias van `powershell`.
|
> Command-line shell en scripting taal specifiek ontworpen voor systeemadministratie.
|
||||||
|
> Dit commando refereert naar PowerShell versie 6 en hoger (ook wel bekend als PowerShell Core en cross-platform PowerShell).
|
||||||
|
> Om de originele Windows versie (5.1 en lager, ook wel bekend als de legacy Windows PowerShell) te gebruiken, gebruik `powershell` in plaats van `pwsh`.
|
||||||
> Meer informatie: <https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_pwsh>.
|
> Meer informatie: <https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_pwsh>.
|
||||||
|
|
||||||
- Bekijk de documentatie van het originele commando:
|
- Start een interactieve shell sessie:
|
||||||
|
|
||||||
`tldr powershell`
|
`pwsh`
|
||||||
|
|
||||||
|
- Start een interactieve shell sessie zonder het laden van startup configuraties:
|
||||||
|
|
||||||
|
`pwsh -NoProfile`
|
||||||
|
|
||||||
|
- Voer specifieke commando's uit:
|
||||||
|
|
||||||
|
`pwsh -Command "{{echo 'powershell is uitgevoerd'}}"`
|
||||||
|
|
||||||
|
- Voer een specifiek script uit:
|
||||||
|
|
||||||
|
`pwsh -File {{pad/naar/script.ps1}}`
|
||||||
|
|
||||||
|
- Start een sessie met een specifieke versie van PowerShell:
|
||||||
|
|
||||||
|
`pwsh -Version {{versie}}`
|
||||||
|
|
||||||
|
- Voorkom dat een shell afsluit na het uitvoeren van de opstart-commando's:
|
||||||
|
|
||||||
|
`pwsh -NoExit`
|
||||||
|
|
||||||
|
- Beschrijf het formaat van de data die gestuurd word naar to PowerShell:
|
||||||
|
|
||||||
|
`pwsh -InputFormat {{Text|XML}}`
|
||||||
|
|
||||||
|
- Bepaal hoe een uitvoer van Powershell word geformateerd:
|
||||||
|
|
||||||
|
`pwsh -OutputFormat {{Text|XML}}`
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# pwsh
|
# pwsh
|
||||||
|
|
||||||
> Command-line shell and scripting language designed especially for system administration.
|
> Command-line shell and scripting language designed especially for system administration.
|
||||||
> This command refers to PowerShell version 6 and above (also known as PowerShell Core and cross-platform PowerShell). To use the original Windows version (5.1 and below, also known as the legacy Windows PowerShell), use `powershell` instead of `pwsh`.
|
> This command refers to PowerShell version 6 and above (also known as PowerShell Core and cross-platform PowerShell).
|
||||||
|
> To use the original Windows version (5.1 and below, also known as the legacy Windows PowerShell), use `powershell` instead of `pwsh`.
|
||||||
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_pwsh>.
|
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_pwsh>.
|
||||||
|
|
||||||
- Start an interactive shell session:
|
- Start an interactive shell session:
|
||||||
|
|
Loading…
Reference in New Issue