Nous n’avons pas trouvé cette entrée. Affichage de résultats approximatifs. Vérifiez l’orthographe ou proposez d’ajouter ce terme au dictionnaire.
scriptblock
ScriptBlock-Parameter
ScriptBlock-Parameters
C:\PS>start-job -name WinRm -scriptblock {get-process winrm} This command runs a background job that gets the WinRM process on the local computer.
C:\PS>start-job -name WinRm -scriptblock {get-process winrm} Beschreibung - Mit diesem Befehl wird ein Hintergrundauftrag ausgeführt, der den WinRM-Prozess auf dem lokalen Computer abruft.
C:\PS> invoke-command -scriptblock $a -args Other value
The actual change is then carried out in the scriptblock.
Im scriptBlock wird dann die eigentliche Änderung durchgeführt.
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.
In that case, the first ScriptBlock, specified in the Value parameter, is used to get the value of a variable.
In diesem Fall wird der erste im Value-Parameter angegebene ScriptBlock verwendet, um den Wert einer Variablen abzurufen.
The second ScriptBlock, specified in the SecondValue parameter, is used to set the value of a variable.
Der zweite ScriptBlock, der im SecondValue-Parameter angegeben ist, wird verwendet, um den Wert einer Variablen festzulegen.
You can use the SecondValue parameter to specify an additional ScriptBlock when adding a ScriptProperty member.
Mit dem SecondValue-Parameter können Sie einen zusätzlichen ScriptBlock angeben, wenn Sie ein ScriptProperty-Element hinzufügen.
Scriptblock The scriptblock can be used when the script should run in the context of another user.
Der scriptBlock kann verwendet werden, wenn das Skript im Kontext eines anderen Benutzers laufen soll.
This is then transferred to the scriptblock using the invoke command.
It uses the ScriptBlock parameter to specify the command to be run on the remote computer.
Der ScriptBlock-Parameter wird zur Angabe des Befehls verwendet, der auf dem Remotecomputer ausgeführt werden soll.
When the entire command is saved in a local variable, you can specify the variable as the value of the ScriptBlock parameter.
Wenn der gesamte Befehl in einer lokalen Variablen gespeichert wird, können Sie die Variable als Wert des ScriptBlock-Parameters angeben.
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.