About 3,950,000 results
Open links in new tab
  1. Running Remote Commands - PowerShell | Microsoft Learn

    Mar 24, 2025 · Using the WS-Management protocol, Windows PowerShell remoting lets you run any Windows PowerShell command on one or more remote computers. You can establish persistent connections, start interactive sessions, and run scripts on remote computers.

  2. Use PowerShell Invoke-Command to run scripts on remote computers

    Jun 15, 2015 · Two ways exist to connect to remote computers with Invoke-Command. You usually use the ‑ComputerName parameter to manage Windows machines. Alternatively, you can pass the ‑ConnectionUri parameter to manage backend applications, such as Exchange, or cloud services such as Azure.

  3. PowerShell Run Script on Remote Computer: A Quick Guide

    To execute a PowerShell script on a remote computer, you can use the `Invoke-Command` cmdlet along with the script block you want to run. Here's a code snippet demonstrating this: Invoke-Command -ComputerName "RemotePC" -ScriptBlock { Write-Host 'Hello from remote!'

  4. How to Run PowerShell Script on Remote Computers - TheITBros

    If you need to run commands or scripts against one or more remote computers, you can use PowerShell Remoting. In this article, we will look at several examples of how to use PowerShell Remoting interactive session mode and persistent connections to run PS1 a script on a …

  5. Using PowerShell Invoke-Command to Run Scripts on Remote …

    Mar 15, 2021 · In this article we will learn how to use the Invoke-Command cmdlet to run PowerShell commands or scripts remotely. You can use PowerShell to run commands remotely on one or more computers in your network. The Invoke-Command cmdlet is using remote management features from PowerShell Remoting.

  6. Using Powershell on one computer to execute a Powershell script on another

    Jul 6, 2010 · First you will need to enable remoting computer on the remote computer. Log onto that computer and from an elevated (admin) prompt execute: Then you can use Invoke-Command to run commands on the remote computer.

  7. How to use PowerShell Invoke-Command - LazyAdmin

    Sep 7, 2023 · Invoke-Command allows you to run PowerShell commands and scripts on one or more remote computers. while redirecting the results to your own console. This makes it a great cmdlet to manage remote devices quickly. In this article, we are going to take a look at what is required to use Invoke-Command and how to use the cmdlet.

  8. Use PsExec and PowerShell together – 4sysops

    Apr 1, 2022 · To run the script on multiple computers, you can either use a file (with entries in the format @computer.txt) or specify a list of comma-separated computer names, as discussed in the How to use PsExec guide. A quick note on PowerShell execution policy—it is a security measure that controls how PowerShell scripts are handled by the computer.

  9. PowerShell Remoting: Execute Remote Commands Like A Pro

    Jan 1, 2025 · If so, PowerShell Remoting lets you quickly send a local script to a remote computer and execute it as if you were physically there. To demonstrate running scripts on a remote computer, create a short script locally and run it on a remote machine to …

  10. PowerShell Remoting in a Workgroup Environment: A Step-by …

    Apr 3, 2025 · Step 1: Enable PowerShell Remoting on the Remote Machine. As with a domain-joined PC, the first step is to enable PowerShell remoting on the remote machine. Open an elevated PowerShell session and run the following command: Enable-PSRemoting -Force. Figure 2. Enable PowerShell remoting on the remote PC. Step 2: Configure the Windows Firewall

  11. Some results have been removed
Refresh