• Explore Resolve
  • Features and Tools
  • Automation in LogMeIn Resolve
  • Remote execution features
product logo
Back button image Back
Back button image
product logo

Run an automated PowerShell, JavaScript, or Python script

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

Note: To run automated scripts, you must have the latest major version of the relevant framework installed on the target computer.
Important: To use this feature, the user must be authenticated with zero trust authentication, which serves the security of the session. Authentication is required only once when you run a Remote Execution step.

    1. On the Devices > Remote Execution page, select Create new job.
      Can't find the page in the left menu? That's probably because the Devices menu is collapsed. Click the arrow to expand it.
    2. On the Create job page, choose the platform where you want to run automation steps.
    3. Add one of the following step to the list on the left:
      • PowerShell execution
      • JavaScript execution
      • Python execution
      • Shell script execution (available on Mac only)
    4. Paste your script to the field. You can also select files to upload that the remote devices 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 2GB each. Any file can be used.
    5. Optional: When you work with PowerShell, you can select Open script library to choose a pre-defined script to run. Then select Apply script.
      At this point, you can still edit the script as necessary.
    6. Click Next.
    7. From the list of Devices define the devices or a group of devices that will receive the script.
      Tip: Device groups are dynamic: when you add a device to a group, it will be included in all scheduled remote execution jobs for that group. Likewise, removing a device from a group will exclude it from future scheduled jobs. However, if you add a device to a group after a recurring remote execution job has already started, that job will not run on the newly added device.
      You can organize your devices by selecting a grouping option from the top of the list.
    8. Optional: Select Add filters at the top of the device list to refine your list. You can filter devices by connection status, zero trust status, BitLocker encryption type, and categories, such as labels and tenants.
    9. Click Next.
    10. Name the job in a way that is easy to remember later on.
      Optionally, with a LogMeIn Resolve Complete plan you can schedule jobs up to one year in advance. To do so, toggle Schedule this job and set the time and date for the job to run. In the Date and time field, either type a date or click the calendar icon to choose it from a date picker.
      Remember: You can select offline devices for scheduled jobs, but when a job runs, devices must be online; otherwise, the job will fail on that device. Scheduled jobs run on each remote device's local time.
    11. Optional: Toggle Retry job for offline devices to let LogMeIn Resolve keep trying to rerun the job on devices that come back online. You can set the retry interval for up to 24 hours in the Queue time drop-down.
    12. Click Run.
      Note: A preset timeout pertains to both the job and the step.

      A timeout for every step is set to two hours, meaning that LogMeIn Resolve waits two hours for the script to finish on the remote computer. When the script finishes, LogMeIn Resolve starts the next step and waits another two hours for that step to finish. If a step does not finish on a remote computer in two hours, then it times out and the whole job fails.

Results:

Note:

When you reference a file from the script, you only have to enter its name. Once the step ends, the file is deleted from the remote 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
Related Articles:
  • Troubleshooting Remote Execution
Article last updated: 20 January, 2025

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