Issues with Intune, Controlling TEMPDIR

Got a problem you cannot solve? Try here.
Posts: 124
Joined: Mon Oct 22, 2012 2:14 pm

Issues with Intune, Controlling TEMPDIR

Postby Sheri_Steeves » Mon Oct 03, 2022 9:23 am

We are working with a client who is trying to install our IA generated setup via Microsoft Intune as SYSTEM.

When running the install as ALLUSERS=TRUE it is failing saying it cannot create the TARGETDIR folder, that a folder or file of the same name already exists. Troubleshooting with the client shows the TARGETFOLDER dies not exist on the system when Intune is syncing/pushing the software.

One thing we were trying to do as part of troubleshooting was running under psexec as SYSTEM and to try and redirect the location of the TEMP folder where the mia\XXX files are extracted prior to install. I tried passing TEMPDIR="XXX" on the command line but IA still uses the C:\Windows\Temp folder. Is there a way to redirect this from the command line?

Site Admin
Posts: 5354
Joined: Sun Aug 22, 2010 4:28 am

Re: Issues with Intune, Controlling TEMPDIR

Postby FrancescoT » Sat Oct 08, 2022 4:19 am

It's not possible to redirect the TEMP location from command line.

Under SYSTEM account the default temp dir is "C:\Windows\Temp". So if the setup really executes as SYSTEM, the process should not have any problem with accessing such temp location. I have personally used psexec to install as SYSTEM account and have never had any problems.

You may try with defining an alternative TEMP location in "SYSTEM environment variables".
Francesco Toscano
InstallAware Software

White Papers (HowTos) - ... papers.htm
Publications -
InstallAware Help -F1 anywhere in the InstallAware IDE

Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 15 guests