Question Résultat d'une commande dans un mail

Plus d'informations
il y a 11 ans 2 mois #19141 par Toper
Il me met un erreur pour \"-index 0\"
[code:1]Invoke-SshCommand : Impossible de trouver un paramètre correspondant au nom « index ».
Au caractère Ligne:2 : 19
+ Invoke-SshCommand -index 0 -Command \&quot;df -h\&quot; |[/code:1]<br><br>Message édité par: gregmurf, à: 27/02/15 14:29

Powershell: la vie est belle :)

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 11 ans 2 mois #19143 par xyz
gregmurf écrit:

Il me met un erreur pour \&quot;-index 0\&quot;

:blink:
C'est à adapter à ton contexte :
[code:1] New-SshSession -ComputerName server -Username user -Password pwd

Invoke-SshCommand -ComputerName server -Command \&quot;df -h\&quot; | group-object -Property {$_.gettype()}[/code:1]

Tutoriels PowerShell

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.035 secondes
Propulsé par Kunena