Examples of using Scriptblock in English and their translations into Italian
{-}
-
Colloquial
-
Official
-
Medicine
-
Financial
-
Ecclesiastic
-
Ecclesiastic
-
Computer
-
Programming
-
Official/political
Use the ScriptBlock parameter to specify the command.
CustomActions on the list that include ScriptBlock or ScriptSrc properties.
Use the ScriptBlock parameter of Invoke-Command to specify the command.
CustomActions that include ScriptBlock or ScriptSrc properties.
The ScriptBlock parameter specifies a script block that contains the command.
The change affects both the Definition and ScriptBlock properties of the FunctionInfo object.
It uses the ScriptBlock parameter to specify the command to be run on the remote computer.
Otherwise, it returns the output of the invoked command(the value of the ScriptBlock parameter).
Invoke-command-session$s-scriptblock{get-job} The command returns a job object.
and it is set as the value of the ScriptBlock parameter of Use-Transaction.
Start-job-scriptblock{get-process} The Start-Job command returns an object that represents the job.
This procedure is equivalent to using the ScriptBlock parameter to submit the contents of the script.
you can specify the variable as the value of the ScriptBlock parameter.
The command uses the ScriptBlock parameter to specify the command that runs in the background job.
Use the Session parameter to specify the PSSessions and the ScriptBlock parameter to specify the command.
In the value of the ScriptBlock parameter, use the$input automatic variable to represent the input objects.
use the$input automatic variable in the value of the ScriptBlock parameter to represent the input objects.
The command uses the ScriptBlock parameter to specify the command
alternate session configuration for Windows PowerShell and the ScriptBlock parameter to specify the command.
CustomActions that do not include ScriptBlock or ScriptSrc properties will continue to work as expected.
Invoke-command-session$s-scriptblock{$p= get-process}
Invoke-command-computername S1, S2, S3-scriptblock{get-culture} You can also run a command in multiple PSSessions.
Invoke-command-computername Server01-scriptblock{get-eventlog system}-asjob The results of the command resemble