C:\PS>invoke-command -computer name Server01 -scriptblock {get-executionpolicy} | set-executionpolicy -force This command gets the execution policy from a remote computer and applies that execution policy to the local computer.
C:\PS>Beschreibung - In diesem Befehl wird die Ausführungsrichtlinie von einem Remotecomputer abgerufen und auf den lokalen Computer angewendet.
C:\PS> invoke-command -scriptblock $a -args Other value
For example, the following command runs a Get-Culture command on three computers: invoke-command -computer name S1, S2, S3 -scriptblock {get-culture} You can also run a command in multiple PSSessions.
Der folgende Befehl führt beispielsweise auf drei Computern einen Get-Culture-Befehl aus: invoke-command -computername S1, S2, S3 -scriptblock {get-culture} Sie können auch einen Befehl in mehreren PSSessions ausführen.
To run a job remotely, use the Invoke-Command cmdlet.
Mit dem Cmdlet Invoke-Command können Sie einen Auftrag remote ausführen.
With a single Invoke-Command command, you can run commands on multiple computers.
You can pipe a command in a script block to Invoke-Command.
To run a job remotely, use the Invoke-Command cmdlet.
Mit dem Cmdlet "Invoke-Command" können Sie einen Auftrag remote ausführen.
For example, the alias for the Invoke-Command cmdlet is remote.
Der Alias für das Cmdlet Invoke-Command lautet z. B. remote.
You do not need to use the Invoke-Command cmdlet to run an imported command.
Sie müssen einen importierten Befehl nicht mit dem Cmdlet Invoke-Command ausführen.
You do not need to use the Invoke-Command cmdlet to run an imported command.
Sie müssen einen importierten Befehl nicht mit dem Cmdlet "Invoke-Command" ausführen.
To run a command on a remote computer, use the Invoke-Command cmdlet.
Verwenden Sie das Cmdlet "Invoke-Command", um einen Befehl auf einem Remotecomputer auszuführen.
Enter the path and file name of the script to Invoke-Command.
For all other commands, use the Invoke-Command cmdlet.
Um andere Befehle auf Remotecomputern auszuführen, verwenden Sie das Cmdlet "Invoke-Command".