une suite d instructions executees dans un ordre clair.
Loading...
Loading...
atelier
parcours pratique pour apprendre PowerShell depuis zero
definition d abord
PowerShell sert a ecrire des instructions precises. Ici tu l abordes comme parcours pratique pour apprendre PowerShell depuis zero. Commence par une idee simple: des entrees passent par des etapes et deviennent une sortie.
script.ps1executer pwsh script.ps1habitude apprends une petite piece de PowerShell, tape un exemple minimal et execute-leune suite d instructions executees dans un ordre clair.
une valeur est une donnee. Une variable est le nom qui la garde.
un petit travail nomme qui recoit une entree et produit un resultat.
PowerShell 7 execute le code de script.ps1.
premier code lisible
Write-Output 42
sortie 42lignee du langage
vois d ou vient PowerShell, quels langages sont proches, et quoi apprendre ensuite.
parcours debutant
Banque de questions
Choisis une etape ou cherche dans la banque de ce langage puis ouvre l exercice.
PowerShell question 1. Choisis l explication qui correspond le mieux a afficher une valeur.
PowerShell question 2. Choisis l explication qui correspond le mieux a nommer une valeur.
PowerShell question 3. Choisis l explication qui correspond le mieux a fonction reutilisable.
PowerShell question 4. Choisis l explication qui correspond le mieux a collection de base.
PowerShell question 5. Choisis l explication qui correspond le mieux a afficher une valeur.
PowerShell question 6. Choisis l explication qui correspond le mieux a nommer une valeur.
PowerShell question 7. Choisis l explication qui correspond le mieux a fonction reutilisable.
PowerShell question 8. Choisis l explication qui correspond le mieux a collection de base.
PowerShell question 9. Choisis l explication qui correspond le mieux a afficher une valeur.
PowerShell question 10. Choisis l explication qui correspond le mieux a nommer une valeur.
PowerShell question 11. Choisis l explication qui correspond le mieux a fonction reutilisable.
PowerShell question 12. Choisis l explication qui correspond le mieux a collection de base.
PowerShell question 13. Choisis l explication qui correspond le mieux a afficher une valeur.
PowerShell question 14. Choisis l explication qui correspond le mieux a nommer une valeur.
PowerShell question 15. Choisis l explication qui correspond le mieux a fonction reutilisable.
PowerShell question 16. Choisis l explication qui correspond le mieux a collection de base.
PowerShell question 17. Choisis l explication qui correspond le mieux a afficher une valeur.
PowerShell question 18. Choisis l explication qui correspond le mieux a nommer une valeur.
choix multiple
PowerShell question 1. Choisis l explication qui correspond le mieux a afficher une valeur.
Write-Output 42
reference
pwsh script.ps1entry point output syntax Write-Output
Write-Output 42
variables assignment types $
$total = 42 Write-Output $total
function collection Array
function Add($a, $b) {
return $a + $b
}
$scores = @(40, 2)
Write-Output $scores.Count