Aller au contenu
Contact us

Installation de PnP.PowerShell

Il est disponible ici

Winget : la procédure d'installation recommandée par Microsoft se trouve ici

Pour installer PowerShell 7, lancez PowerShell.exe en mode administrateur et exécutez cette commande : winget install --id Microsoft.Powershell --source winget

Voici la page d'installation de PnP

N'oubliez pas la stratégie d'exécution : PnP.PowerShell ne se charge qu'avec une stratégie qui autorise les modules, comme RemoteSigned ; Restricted, la stratégie par défaut sous Windows 11, le bloque. Dans PowerShell lancé en tant qu'administrateur : Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine (pourquoi · Microsoft : Set-ExecutionPolicy)

Si vous souhaitez personnaliser les modules PowerShell, vous avez également besoin de Visual Code (VSCode) Télécharger ici