Outils pour utilisateurs

Outils du site


windows:powershell

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
windows:powershell [2022/03/10 12:00] bloopwindows:powershell [2023/09/07 10:03] (Version actuelle) bloop
Ligne 10: Ligne 10:
  
 Exécution d’un script : ''./nom_du_script.ps1'' Exécution d’un script : ''./nom_du_script.ps1''
 +
 +Exécution d'un script sans modifier la sécurité :\\
 +''powershell -noprofile -ExecutionPolicy Bypass -file "C:\chemin\du\dossier\script.ps1"''
 +
 +Caractère de commentaire dans un script : ''#''
  
 [[http://go.microsoft.com/fwlink/?LinkID=135170|Voir documentation Microsoft]] [[http://go.microsoft.com/fwlink/?LinkID=135170|Voir documentation Microsoft]]
Ligne 25: Ligne 30:
 <code>Invoke-Command -ComputerName <NomMachine> -ScriptBlock {​ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine }</code> <code>Invoke-Command -ComputerName <NomMachine> -ScriptBlock {​ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine }</code>
  
-^  Commandes PowerShell  ^^^^ +^  Commandes PowerShell  ^^^ 
-|<code>$PSVersionTable.PSVersion</code> top   fleur   famille  |+|$PSVersionTable.PSVersion|Donne la version de PowerShell installée|//Le n° de version se trouve dans la colonne Major//| 
 +|Test-NetConnection -ComputerName <NomServeurOuIP> -Port <1339>|Tester un port spécifique|
windows/powershell.1646910008.txt.gz · Dernière modification : 2022/03/10 12:00 de bloop