About 4,810 results
Open links in new tab
  1. Invoke-Command (Microsoft.PowerShell.Core) - PowerShell

    The Invoke-Command cmdlet runs commands on a local or remote computer and returns all output from the commands, including errors. Using a single Invoke-Command command, you can run commands …

  2. powershell - How do I pass named parameters with Invoke-Command ...

    Nov 19, 2010 · If the script is on your local machine, and you don't want to change the parameters to be positional, or you want to specify parameters that are common parameters (so you can't control …

  3. Understanding the -ArgumentList Parameter in PowerShell’s Invoke-Command

    Feb 10, 2025 · Invoke-Command allows you to execute commands on remote computers or within a script block. If the command or script block requires arguments, the -ArgumentList parameter is your …

  4. How to pass arguments in Invoke-Command in PowerShell?

    Nov 11, 2020 · To pass the argument in the Invoke-command, you need to use - ArgumentList parameter. For example, we need to get the notepad process information on the remote server.

  5. Invoke-Command Cheat Sheet - Command in Line

    Invoke-Command is a versatile cmdlet that enables you to run commands or script blocks on one or more remote computers or locally across multiple sessions. It uses PowerShell Remoting to execute …

  6. Run PowerShell Script With Parameters: A Simple Guide

    Discover how to run PowerShell script with parameters effortlessly. This guide offers clear examples and tips to enhance your scripting skills.

  7. Invoke-Command - PowerShell - SS64.com

    Invoke-Command may also be used on a local computer to evaluate or run a string in a script block as a command. PowerShell converts the script block to a command and runs the command immediately …

  8. How to Pass an Argument to a PowerShell Script - Delft Stack

    Mar 11, 2025 · In this tutorial, we will explore various methods to pass arguments to a PowerShell script. By the end, you will have a clear understanding of how to implement this feature in your own scripts, …

  9. How to use Script Parameters with Invoke-Command

    Nov 30, 2023 · I'm currently facing a challenge while using remote PowerShell over SSH to execute a script on a Windows machine and pass parameters. Locally, I run the script with parameters using …