Examples of using Invoke-command in English and their translations into Portuguese
{-}
-
Colloquial
-
Official
-
Medicine
-
Financial
-
Ecclesiastic
-
Ecclesiastic
-
Computer
-
Official/political
To run a job remotely,use the Invoke-Command cmdlet.
And, you can use Invoke-Command to run a Start-Job command remotely.
To run a profile in a session,use the Invoke-Command cmdlet.
The command uses the Invoke-Command cmdlet to run a Get-Host command.
To run commands in a PSSession,use the Invoke-Command cmdlet.
The fifth command uses Invoke-Command to run a Get-Job command on the S2 computer.
You can pipe a command in a script block to Invoke-Command.
You do not need to use the Invoke-Command cmdlet to run an imported command.
To run a command on a remote computer,use the Invoke-Command cmdlet.
The third command uses the Invoke-Command cmdlet to run a Wait-Job command.
To run commands in a PSSession,use the Session parameter of the Invoke-Command cmdlet.
The second command uses the Invoke-Command cmdlet to run a Set-Mailbox command.
Invoke-Command The AsJob parameter runs any command as a background job on a remote computer.
Use the ScriptBlock parameter of Invoke-Command to specify the command.
Before using Invoke-Command to run commands on a remote computer, read about_Remote.
When you use the AsJob parameter, Invoke-Command returns a job object.
Both the Start-Job andWait-Job commands are submitted to the remote computer by using the Invoke-Command cmdlet.
You can use the ComputerName parameter of Invoke-Command to specify a remote computer.
To run a script on one or many remote computers,use the FilePath parameter of the Invoke-Command cmdlet.
The second command uses the Invoke-Command cmdlet to run the Get-Culture command on Server02.
For more information, see the example in the Invoke-Command Help topic.
The second command uses the Invoke-Command cmdlet to run the command in$command on the S1 and S2 remote computers.
Invoke-command-computername S1, S2, S3-scriptblock{get-culture} You can also run a command in multiple PSSessions.
The AsJob parameter is similar to using Invoke-Command to run a Start-Job command remotely.
STEP 1: INVOKE-COMMAND START-JOB Use the Invoke-Command cmdlet to run a Start-Job command on a remote computer.
Errors that result from the command that Invoke-Command runs are included in the command results.
Unlike Invoke-Command, which parses and interprets the commands before sending them to the remote computer, Enter-PSSession sends the commands directly to the remote computer without interpretation.
The ComputerName parameters of the New-PSSession,Enter-PSSession and Invoke-Command cmdlets accept an IP address as a valid value.
The second command uses the Invoke-Command cmdlet to run a Get-Mailbox command on a remote server running Microsoft Exchange Server.
When you use the ComputerName parameter of Invoke-Command or Enter-PSSession, Windows PowerShell establishes a temporary connection.