Comment mettre à jour PowerShell 7 sur Windows 11 ?

Réponses rédigées par Antoine
Dernière mise à jour : 2022-09-26 12:44:40
Question

Comment faire pour mettre à jour PowerShell 7 sur Windows 11 ?

Réponse

Pour mettre à jour PowerShell 7 sur Windows 11, procédez comme suit :

  • Maintenez la touche Windows et appuyez sur X.
  • Cliquez sur Terminal (administrateur).
  • Copiez puis collez la commande ci-après.
  • Appuyez sur la touche Entrée.
  • PowerShell 7 se met à jour.

Commande PowerShell pour mettre à jour PowerShell :

iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"

Remarque : Windows 11 va télécharger le fichier d'installation pour mettre à jour PowerShell 7. Cliquez sur le bouton Next pour commencer la mise à jour.