AutoIT

Modified on Thu, May 29, 2025 at 1:52 PM

AutoIT Installer: G:\IT\Apps\autoit-v3-setup


We use AutoIT for various customized scripts, including:

  • Profile Backup & Restore
  • MapDrivesVPN
  • RemapDrives
  • Prologue Processing (stored in G:\Shared\UnattendedProcessing)
  • Installing the Suspicious Email Button
  • Find Your PC Name & IP Address


The script is created in the AutoIT tool, then gets exported to a .exe executable file.  See examples of both files in G:\IT\AutoIt Files


In the past, this has also been used to create "forms" for employees to send information or requests to the Service Desk.  Forms can have text fields, checkboxes, radio buttons, etc., and can send an email to the Service Desk.


In the script, declare your variables:

Msgbox = pops up a message box

FileCopy

FileMove

DirCopy

@[Windows variables]

RunAs (can use a domain service account to run an application)

RunAsWait = don't do anything else until this step is complete

FileFindFirstFile = look through directory and locate file matching the file name format specified (*.* = current month and day)


Add in a Msgbox to any part of the script if you are testing/troubleshooting and trying to determine if the last result is a 1 or -1. 


If result is -1, error.  e.g. U:/ drive directory matching the user's username was not found.


If our file server names ever get changed, we would need to update the Profile Backup & Restore apps, then save the updated versions in G:\Shared.  


Good Help index for macros, functions and other info (press F1 in the app).

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article