Perform File Operations

Use the Task Perform File Operations to move, copy, rename and delete files and folders; to create folders; and to create and edit INI files. File operations can be performed on local folders and disks on Agents.

After running this Task, you can view its log file on the Log tab in its Job History.


  • The file operation is executed with the user profile of the user name provided at Security Context for this Task. The account that is used to execute file operations needs to have "Log on locally" rights.
    Optionally, select Run with elevated privileges. If the provided credentials are not allowed to run elevated, the tasks will report an impersonation error.
  • Edit/Create INI file: it is also possible to configure files with other extensions, but the configured file will still be treated as an INI file.
  • If you try to copy, move or create a file or folder to a destination path that does not exist, any folders missing from that path will be created automatically.
  • Specify a backslash (\) at the end of the source path if you want Ivanti Automation to perform the file operation only with the contents of the specified folder.


Contrary to other places where wildcards are allowed, the Task File Operations interprets wildcards in source file and folder paths within the backslashes that define the different levels of the path. This means that you can use an expression that includes several wildcards.

For example, C:\Users\*\AppData\*\Temp\* resolves as:

  • C:\Users\User1\AppData\Local\Temp\*

  • C:\Users\User1\AppData\LocalLow\Temp\*

  • C:\Users\User1\AppData\Roaming\Temp\*

  • C:\Users\User2\AppData\Local\Temp\*

  • C:\Users\User2\AppData\LocalLow\Temp\*

  • C:\Users\User2\AppData\Roaming\Temp\*

For example, C:\Users\User1\*\*\Temp\* resolves as:

  • C:\Users\User1\AppData\Local\Temp\*

  • C:\Users\User1\AppData\LocalLow\Temp\*

  • C:\Users\User1\AppData\Roaming\Temp\*

  • C:\Users\User1\Application Data\Ivanti\Temp\*

For example, C:\Users\User1\AppData\Roaming\Temp\* will remove all files and folders in the C:\Users\User1\AppData\Roaming\Temp location.