to Run a bat file remotely

Welcome Forums General PowerShell Q&A to Run a bat file remotely

This topic contains 1 reply, has 2 voices, and was last updated by

1 year, 11 months ago.

  • Author
  • #69595

    Points: 0
    Rank: Member

    i have a application which need to be updated via a bat file .

    i'm looking for a powershell cmdlet or using psexec command to run this bat file on remote machines please help

    tried with start-process and psexec command which doesn't help me .

  • #69598

    Points: 24
    Team Member
    Rank: Member

    I'll want to use the Invoke-Command cmdlet.


    param (
    Invoke-Command -ComputerName $ComputerName -ScriptBlock {
      & 'C:\path to file\name.bat'


The topic ‘to Run a bat file remotely’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort