Windows PowerShellPowerShell
Langage PowerShell
🔶 Installer Windows PowerShell
Windows PowerShell, (ex Microsoft Command Shell - MSH), est une interface en ligne de commande et un langage de script développé par Microsoft.
Exécuter PowerShell sous Windows
- Lancer Windows PowerShell à partir du menu Démarrer / Programmes / Windows PowerShell
- Saisir PowerShell directement dans la fenêtre Démarrer / Exécuter (Windows + R)
- Avec le raccourci W + X on peut lancer PowerShell en mode Admin
🔶 Commande Windows PowerShell
Saisir une commande PowerShell
get-help
get-command
get-command
Exécuter un script PowerShell
- Création d'un fichier ayant pour extension .PS1
- Changer le niveau de sécurité avec la commande : "Set-ExecutionPolicy RemoteSigned" - Faire un Get-ExecutionPolicy pour vérifier.
- Exécuter la commande : "powershell c:\monscript.ps1"


