About 449,000 results
Open links in new tab
  1. How to execute a powershell script available in remote machine?

    May 5, 2017 · How to make it to run the script available in remote machine? Updated: Actually this command " invoke-command -computer $MachineName -command { C:\hello.ps1 } " works in remote side and returned the result to client side.

  2. 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.

  3. 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 …

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

    Jun 15, 2015 · When it comes to managing remote computers with PowerShell, you have essentially three options. You can open an interactive session with the Enter-PSSession cmdlet (One-to-One Remoting). An alternative is the Invoke-Command cmdlet, which allows you to run remote commands on multiple computers (which is why it is called One-to-Many Remoting).

  5. PowerShell: How to execute PowerShell Scripts (*.ps1) on Remote ...

    Jan 13, 2025 · If the script is located on the remote computer, we must use the Scriptblock parameter. Here is an example: This command will call the script script.ps1 which is located on the Remote-Computer. If the script is located on the …

  6. Remotely Run a PowerShell Workflow - Scripting Blog [archived]

    Nov 5, 2014 · The domain controller, DC1, is the workflow server. It is the server that uses Windows PowerShell workflow to run commands on remote servers. I use the Invoke-Command cmdlet, and I specify the session I just created.

  7. Powershell: Execute exe on remote server and capture output

    Sounds like your best bet here is to use PSExec to open a remote PowerShell console or command line from your local machine, which would be executing on the remote server. So, for example: psexec \\remoteserver cmd.exe

  8. How to Remotely Execute a PowerShell Script? - SharePoint Diary

    May 27, 2020 · How do I run a PowerShell script on a remote computer? Use the Invoke-Command cmdlet to run a script on a remote machine. For example: Invoke-Command -ComputerName RemoteComputerName -FilePath C:\Scripts\Update-Services.ps1

  9. Running Windows PowerShell Commands in a Workflow

    To run commands or expressions in a workflow that are valid in Windows PowerShell, but not valid in workflows, run the commands in an inlineScript activity. You can use also an inlineScript activity to run Windows PowerShell scripts (.ps1 files) in a workflow.

  10. Execute On-Premise PowerShell with Okta Workflows - GitHub

    With Okta, you can execute PowerShell on-premises with a combination of Okta Workflows + Azure Automation. Azure Automation delivers a cloud-based automation service that supports automation across Microsoft Azure, on-premises non-Azure, and hybrid environments.

  11. Some results have been removed
Refresh