# Les commandes Windows

# Commandes Windows utiles

# Winget - Installer et gérer des applications

# Commande upgrade (winget)

source : [https://learn.microsoft.com/fr-fr/windows/package-manager/winget/](https://learn.microsoft.com/fr-fr/windows/package-manager/winget/)

#### Lister tous les logiciels installé 

```bash
winget list
```

Ce qui donne : (liste non exhaustive)

```
PS C:\Users\user> winget list
Nom                                                                                       ID                                                   Version                Disponible Source
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
HP Smart                                                                                  AD2F1837.HPPrinterControl_v10z8vjag6ke6              142.3.139.0
AVG AntiVirus Gratuit                                                                     AVG Antivirus                                        22.12.3264
Android Studio                                                                            Android Studio                                       2021.1
Intel® Graphics Control Panel                                                             AppUp.IntelGraphicsControlPanel_8j3eq9eme6ctt        3.3.0.0
Centre de configuration des graphiques Intel®                                             AppUp.IntelGraphicsExperience_8j3eq9eme6ctt          1.100.4478.0
DBeaver 22.3.5                                                                            dbeaver.dbeaver                                      22.3.5                            winget
GIMP 2.10.22                                                                              GIMP.GIMP                                            2.10.22                2.10.32    winget
Git                                                                                       Git.Git                                              2.37.1                 2.39.2     winget
Google Chrome                                                                             Google.Chrome                                        110.0.5481.178                    winget
Microsoft Edge                                                                            Microsoft.Edge                                       110.0.1587.57                     winget
Microsoft Edge Update                                                                     Microsoft Edge Update                                1.3.173.45
Microsoft Edge WebView2 Runtime                                                           Microsoft.EdgeWebView2Runtime                        110.0.1587.57                     winget
PowerToys (Preview) x64                                                                   Microsoft.PowerToys                                  0.57.2                 0.67.1     winget

```

##### Lister toutes les MàJ disponibles 

```bash
winget upgrade
```

Exemple :

```
PS C:\Users\user> winget upgrade
Nom                                              ID                                Version      Disponible   Source
-------------------------------------------------------------------------------------------------------------------
GIMP 2.10.22                                     GIMP.GIMP                         2.10.22      2.10.32      winget
Git                                              Git.Git                           2.37.1       2.39.2       winget
PowerToys (Preview) x64                          Microsoft.PowerToys               0.57.2       0.67.1       winget
```

#####   


##### Faire la MàJ

sur un logiciel :

```bash
winget upgrade <nom>
# OU
winget upgrade --id <id>
```

Sur tous les logiciels :

```bash
winget upgrade --all
```