Skip to content

Glossary: Command Line for IT: Bash and PowerShell

Invoke-Command

Also written: PSComputerName, -HostName, -ScriptBlock

Runs a script block on another machine; with -HostName it goes over SSH. The results come back as objects stamped with PSComputerName.

Where the book teaches it

Related terms

Enter-PSSessionWinRM