Section courante

A propos

Section administrative du site

Invoke-Command

Invoquer une commande
PowerShell

Syntaxe

Invoke-Command [-ScriptBlock] ScriptBlock [-NoNewScope] [-InputObject PSObject] [-ArgumentList Object[]] [CommonParameters]
Invoke-Command [[-Session] PSSession[]] [-ThrottleLimit Int32] [-AsJob] [-HideComputerName] [-JobName String] [-FilePath] String [-RemoteDebug] [-InputObject PSObject] [-ArgumentList Object[]] [CommonParameters]
Invoke-Command [[-Session] PSSession[]] [-ThrottleLimit Int32] [-AsJob] [-HideComputerName] [-JobName String] [-ScriptBlock] ScriptBlock [-RemoteDebug] [-InputObject PSObject] [-ArgumentList Object[]] [CommonParameters]
Invoke-Command [[-ComputerName] String[]] [-Credential PSCredential] [-Port Int32] [-UseSSL] [-ConfigurationName String] [-ApplicationName String] [-ThrottleLimit Int32] [-AsJob] [-InDisconnectedSession] [-SessionName String[]] [-HideComputerName] [-JobName String] [-FilePath] String [-SessionOption PSSessionOption] [-Authentication AuthenticationMechanism] [-EnableNetworkAccess] [-RemoteDebug] [-InputObject PSObject] [-ArgumentList Object[]] [CommonParameters]
Invoke-Command [[-ComputerName] String[]] [-Credential PSCredential] [-Port Int32] [-UseSSL] [-ConfigurationName String] [-ApplicationName String] [-ThrottleLimit Int32] [-AsJob] [-InDisconnectedSession] [-SessionName String[]] [-HideComputerName] [-JobName String] [-ScriptBlock] ScriptBlock [-SessionOption PSSessionOption] [-Authentication AuthenticationMechanism] [-EnableNetworkAccess] [-RemoteDebug] [-InputObject PSObject] [-ArgumentList Object[]] [-CertificateThumbprint String] [CommonParameters]
Invoke-Command [-Credential PSCredential] [-ConfigurationName String] [-ThrottleLimit Int32] [[-ConnectionUri] Uri[]] [-AsJob] [-InDisconnectedSession] [-HideComputerName] [-JobName String] [-ScriptBlock] ScriptBlock [-AllowRedirection] [-SessionOption PSSessionOption] [-Authentication AuthenticationMechanism] [-EnableNetworkAccess] [-RemoteDebug] [-InputObject PSObject] [-ArgumentList Object[]] [-CertificateThumbprint String] [CommonParameters]
Invoke-Command [-Credential PSCredential] [-ConfigurationName String] [-ThrottleLimit Int32] [[-ConnectionUri] Uri[]] [-AsJob] [-InDisconnectedSession] [-HideComputerName] [-JobName String] [-FilePath] String [-AllowRedirection] [-SessionOption PSSessionOption] [-Authentication AuthenticationMechanism] [-EnableNetworkAccess] [-RemoteDebug] [-InputObject PSObject] [-ArgumentList Object[]] [CommonParameters]
Invoke-Command -Credential PSCredential [-ConfigurationName String] [-ThrottleLimit Int32] [-AsJob] [-HideComputerName] [-ScriptBlock] ScriptBlock [-RemoteDebug] [-InputObject PSObject] [-ArgumentList Object[]] [-VMId] Guid[] [CommonParameters]
Invoke-Command -Credential PSCredential [-ConfigurationName String] [-ThrottleLimit Int32] [-AsJob] [-HideComputerName] [-ScriptBlock] ScriptBlock [-RemoteDebug] [-InputObject PSObject] [-ArgumentList Object[]] -VMName String[] [CommonParameters]
Invoke-Command -Credential PSCredential [-ConfigurationName String] [-ThrottleLimit Int32] [-AsJob] [-HideComputerName] [-FilePath] String [-RemoteDebug] [-InputObject PSObject] [-ArgumentList Object[]] [-VMId] Guid[] [CommonParameters]
Invoke-Command -Credential PSCredential [-ConfigurationName String] [-ThrottleLimit Int32] [-AsJob] [-HideComputerName] [-FilePath] String [-RemoteDebug] [-InputObject PSObject] [-ArgumentList Object[]] -VMName String[] [CommonParameters]
Invoke-Command [-Port Int32] [-AsJob] [-HideComputerName] [-JobName String] [-ScriptBlock] ScriptBlock -HostName String[] [-UserName String] [-KeyFilePath String] [-SSHTransport] [-RemoteDebug] [-InputObject PSObject] [-ArgumentList Object[]] [-Subsystem String] [CommonParameters]
Invoke-Command [-ConfigurationName String] [-ThrottleLimit Int32] [-AsJob] [-HideComputerName] [-JobName String] [-ScriptBlock] ScriptBlock [-RunAsAdministrator] [-RemoteDebug] [-InputObject PSObject] [-ArgumentList Object[]] -ContainerId String[] [CommonParameters]
Invoke-Command [-ConfigurationName String] [-ThrottleLimit Int32] [-AsJob] [-HideComputerName] [-JobName String] [-FilePath] String [-RunAsAdministrator] [-RemoteDebug] [-InputObject PSObject] [-ArgumentList Object[]] -ContainerId String[] [CommonParameters]
Invoke-Command [-AsJob] [-HideComputerName] [-JobName String] [-ScriptBlock] ScriptBlock -SSHConnection Hashtable[] [-RemoteDebug] [-InputObject PSObject] [-ArgumentList Object[]] [CommonParameters]
Invoke-Command [-AsJob] [-HideComputerName] -FilePath String -HostName String[] [-UserName String] [-KeyFilePath String] [-SSHTransport] [-RemoteDebug] [-InputObject PSObject] [-ArgumentList Object[]] [CommonParameters]
Invoke-Command [-AsJob] [-HideComputerName] -FilePath String -SSHConnection Hashtable[] [-RemoteDebug] [-InputObject PSObject] [-ArgumentList Object[]] [CommonParameters]

Description

Cette commande permet d'exécuter des commandes sur des ordinateurs locaux et à distances.



Dernière mise à jour : Jeudi, le 14 Janvier 2021