# En Shell > activer l'archivage à extention automatique

[Enable auto-expanding archiving](https://learn.microsoft.com/en-us/purview/enable-autoexpanding-archiving)

- Connecter à exchange On Line (attention en temps que partenaire nous n’aurons les droits pour activer ce paramètre.

```powershell
Connect-ExchangeOnline -Organization [cabcourtois.com](<http://cabcourtois.com/>)

```

- Obtenir les informations sur le paramètre

```powershell
Get-Mailbox [vcourtois@cabcourtois.com](<mailto:vcourtois@cabcourtois.com>) | FL AutoExpandingArchiveEnabled

```

- Activer le paramètre pour l’utilisateur.

```powershell
Enable-Mailbox [vcourtois@cabcourtois.com](<mailto:vcourtois@cabcourtois.com>) -AutoExpandingArchive

```