Easy-Micro

BUREAUTIQUE Windows PowerShell
PowerShell

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.

PowerShell 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

PowerShell Saisir une commande PowerShell

get-help

get-command

PowerShell 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"

< Page précédente WINDOWS POWERSHELL Page suivante >