Vous souhaitez apprendre à créer un profil Powershell ? Dans ce didacticiel, nous allons vous montrer comment créer un profil Powershell sur un ordinateur exécutant Windows.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Fenêtres 2022
• Windows 10
• Windows 11

Liste des équipements

Ici, vous pouvez trouver la liste des équipements utilisés pour créer ce tutoriel.

Ce lien affichera également la liste logicielle utilisée pour créer ce tutoriel.

Tutoriel connexe - PowerShell

Sur cette page, nous offrons un accès rapide à une liste de tutoriels liés à PowerShell.

Didacticiel Powershell - Création d’un profil Powershell

Démarrez une ligne de commande Powershell.

Start Powershell

Vérifiez l’existence d’un profil Powershell.

Copy to Clipboard

Voici la sortie de commande:

Copy to Clipboard

Créez un profil Powershell.

Copy to Clipboard

Voici la sortie de commande:

Copy to Clipboard

Modifiez votre profil Powershell.

Copy to Clipboard

Ajoutez vos personnalisations au profil Powershell.

Copy to Clipboard

Dans notre exemple, nous créons un alias pour tester la connectivité Internet nommé TESTINTERNET.

Le système doit autoriser l’exécution de scripts PowerShell.

En tant qu’administrateur, modifiez la stratégie Powershell pour autoriser l’exécution de scripts.

Copy to Clipboard

Si vous le souhaitez, utilisez un objet de stratégie de groupe pour modifier la stratégie d’exécution des scripts Powershell.

Démarrez une nouvelle ligne de commande Powershell et testez la nouvelle commande.

Copy to Clipboard

Voici la sortie de commande:

Copy to Clipboard

félicitations! Vous pouvez créer un profil PowerShell.