LogMeIn support sites no longer support Microsoft's Internet Explorer (IE) browser. Please use a supported browser to ensure all features perform as they should (Chrome / FireFox / Edge).

The GoTo support site no longer supports Safari 15. Please upgrade your browser to Safari 16 (or newer) or switch to a supported browser such as Google Chrome, Mozilla Firefox, or Microsoft Edge.

Maintain your IT infrastructure with powerful RMM software. Discover LogMeIn Central.

We are currently experiencing an unplanned outage for this product. View Service Status
  • Support
  • Products

    Explore support by product

    GoTo Connect

    All-in-one phone, meeting and messaging software

    GoTo Meeting

    Video and audio meeting software

    GoTo Webinar

    All-in-one webinar and virtual events software

    GoTo Room

    Conference room hardware

    GoTo Training

    Online training software

    OpenVoice

    Audio conferencing software

    Grasshopper

    Lightweight virtual phone system

    join.me

    Video conferencing software

    LogMeIn Resolve

    IT management & support

    LogMeIn Resolve MDM

    Mobile device management

    LogMeIn Pro

    Remote device access

    LogMeIn Central

    Remote monitoring & management

    LogMeIn Rescue

    Remote IT support

    GoToMyPC

    Remote desktop access

    GoToAssist

    Remote support software

    Hamachi

    Hosted VPN service

    RemotelyAnywhere

    On-prem remote access solution
  • Community
  • Trainings
  • Service Status
  • Try the improved My Cases portal

    Easily manage your ticket, track its status, contact us from an existing case, and more.

    Sign in to try
  • Language selector icon Language selector icon
    • English
    • Français
    • Italiano
    • Deutsch
    • Español
    • Português
    • Nederlands
  • Contact Support
  • Service Status
  • User Avatar User Avatar
    • Support
    • Contact Support
    • Browse Products
    • Service Status
    • Community
    • Trainings
    • Sign in
    • User Avatar
    • My Account
    • Personal Info
    • Sign In & Security
    • My Cases
    • Billing Center
    • https://link.goto.com/myaccount-billing
    • My GoTo Connect
    • My Meetings
    • My Webinars
    • My Trainings
    • My Conferences
    • My Resolutions
    • My Mobile Devices
    • My Sessions
    • My Sessions
    • My Incidents
    • Sign out
  • Explore Features
  • Automation
  • Remote execution - automation
product logo
Back button image Back
Back button image
product logo

Run an automated PowerShell script with Remote Execution

Create automated PowerShell scripts that you can run on multiple computers without user interaction.

Important: To create or run an automated PowerShell script the user must be authenticated with Two-Factor Authentication (2FA). This added security step serves the security of the session, as no host credentials are needed.

Authentication is required only once during the session. If 2FA is set to on demand, the user has to authenticate themselves when they select Create new job or Rerun, otherwise 2FA is done on login.

  1. On the Manage page under Remote Execution select Create new job.

    Result: The Create job page is displayed.

  2. Add the PowerShell execution step to the list on the left.
  3. Paste your PowerShell script to the field. You can also select files to upload that the target computers can download.
    Note: You can reference the file(s) from the script. You can upload up to three files per job with a maximum size of 1GB each. Any file can be used.
  4. Select Done.
  5. Select Choose computers.
  6. From the list of Computers define the computers or a group of computers that will receive the script.
  7. Enter a friendly name that you can easily remember later on.
  8. Select Run.
    Note: A preset timeout pertains to both the job and the task.

    The timeout of the job is 24 hours. Practically this means that computers can download the script and report back the result for one day.

    Task timeout is set to two hours, that is the target computer waits two hours for the script to start running.

Results:

Note:

When you reference a file from the script, you only have to enter its name. The path of the file is stored in the central_FilesPath environment variable. Once the task ends, the file is deleted from the target computer, unless it is copied somewhere else with the script.

Example:

You upload 'a.txt' file for the job and you would like to copy it into a folder (also known as file distribution). Your script should look something like this:
Copy-Item a.txt C:\Destination

Need help?

Contact icon Contact support
Manage Cases icon Manage cases
Community icon Ask the Community
Training icon Attend trainings
Video icon Watch videos
  • Language selector icon Language selector icon
    • English
    • Français
    • Italiano
    • Deutsch
    • Español
    • Português
    • Nederlands
  • About Us
  • Terms of Service
  • Privacy Policy
  • Trademark
  • Do Not Sell or Share My Personal Info
  • Browse Products
  • Copyright © 2025 GoTo Group, Inc. All rights reserved

Collaboration Products

GoTo Connect

GoTo Meeting

GoTo Webinar

GoTo Training

join.me

Grasshopper

OpenVoice

Remote Solutions Products

GoTo Resolve

Rescue

GoToAssist

Access Products

Pro

Central

GoToMyPC