Invoke-ScriptBlock - Half way through my month of lunches and I can't seem to find any docs on this command. Is it real?

Viewed 41

From the new PowerShell in a month of lunches. I can't get this command to work or find docs on it.

13.6 Using Invoke-ScriptBlock for one-to-many remoting The next trick—and honestly, this is one of the coolest things in PowerShell—is to send a command to multiple remote computers at the same time. That’s right, full-scale distributed computing. Each computer will independently execute the command and send the results back to you. It’s all done with the Invoke-ScriptBlock cmdlet, and it’s called one-to-many, or 1:N, remoting.

1 Answers

There is indeed no Invoke-ScriptBlock in PowerShell. My best guess is that the author is referring to using the Invoke-Command cmdlet with its ScriptBlock parameter. See here for Microsoft's docs on Invoke-Command + -ScriptBlock.

Related