powershell, pwsh: update page (#11497)

pull/23/head
Sebastiaan Speck 2023-11-14 16:37:36 +01:00 committed by GitHub
parent 8f1ca06f30
commit aef7830806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 32 deletions

View File

@ -1,37 +1,17 @@
# powershell
> Command-line shell en scripting taal specifiek ontworpen voor systeemadministratie.
> Zie ook: `pwsh`.
> 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`.
> 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>.
- 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'}}"`
- 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}}`
`tldr powershell -o windows`

View File

@ -1,8 +1,38 @@
# 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>.
- 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}}`

View File

@ -1,7 +1,8 @@
# pwsh
> 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>.
- Start an interactive shell session: