How to change the TEMP folder used for MID ServerIssue In some cases execution from /tmp directory is restricted for security reasons, so it will be necessary to specify a different folder where the MID server can create temporary files. This KB covers how to change the TEMP folder used by the MID Server in such scenarios.ReleaseQuebec and earlier. Note: Once an instance and MID Servers are upgraded to Rome or later, a temp folder within agent\work\ will be used instead of the OS/User temp folder. If you need to keep the old temp folder for future upgrades (not recommended), then set the following ecc_agent_property: mid.upgrade.use_os_temp_folder = trueResolutionGo to [MID_installation_path]/agent/confOpen wrapper-override.conf fileLook for section titled "# Java Additional Parameters"Under that section there should be a commented section called "# Uncomment below to enable JDP. Change the address/port settings as needed."Under that add a uncommented line like: wrapper.java.additional.2=-Djava.io.tmpdir=[PATH_TO_DIFFERENT_DIRECTORY_FILE] Note: the "2" after "additional." above. That number will depend on if there are other properties already there. For example if there is a property using "wrapper.java.additional.1=" and "wrapper.java.additional.2=" already, then the next one that should be used is "wrapper.java.additional.3=" and so on It should look something like: # Java Additional Parameterswrapper.java.additional.1=-Djava.util.logging.config.file=properties/glide.properties# Uncomment below to enable JDP. Change the address/port settings as needed.wrapper.java.additional.2=-Djava.io.tmpdir=[PATH_TO_DIFFERENT_DIRECTORY] Note: If the temp folder path on Windows includes a space in any of the folders, you may have a problem. Avoid temp folders with space characters in the path. See PRB1422003/KB0861154, which is fixed by PRB1396562/KB0861153 in Rome.Related LinksServiceNow Discovery 101: Virus Scanners And MID Server PerformanceMID Server pre-upgrade check